SQLSTATE=>42000 SQL Error=>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 ry_sort desc' at line 1 Error SQL=>SELECT * FROM ry_parameter WHERE ry_two_id= ORDER BY ry_sort desc