An Error Was Encountered
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'partition = 'video_external' ORDER BY comments2.id desc LIMIT 3' at line 4
SELECT comments2.*, user.login, user.sex, user.avatar, comments2.charm as comm_charm, user.charm as user_charm, user.id as user_id, (YEAR(NOW()) - YEAR(user.bdate)) as user_year FROM comments2 JOIN user ON comments2.user_id = user.id WHERE card_id = '39' and partition = 'video_external' ORDER BY comments2.id desc LIMIT 3