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 'AND art_status = 1 ORDER BY art_status DESC, art_surname ASC, art_name ASC LIMIT' at line 1