Failed to run query SELECT blog_templates_text.*,pogo616_library.language_score('en',language,is_default) AS language_score FROM pogo616_pogolog.blog_templates JOIN pogo616_pogolog.blog_templates_text ON blog_templates.blog_template_id=blog_templates_text.blog_template_id WHERE profile_id= ORDER BY language_score DESC,language: (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 language_score DESC,language' at line 1