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 'ORDER BY relevancia desc limit 0,6' at line 3

SELECT distinct(post_title), post_id, language_id, post_url, post_image, post_created, post_comments, ap, '' as relevancia FROM articles_related_table WHERE ap = 'rm' AND post_id <> 1579 AND language_id = 1 AND ORDER BY relevancia desc limit 0,6