select `files`.`file_id` from `files` where file_owner_table = 'document' AND file_owner_id = order by file_id limit 0,9999999MySQL 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 file_id limit 0,9999999' at line 1