A Database Error Occurred

Error Number: 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 id desc limit 5' at line 3

select *, (select category from cad_library_categories where id=cad_files.software) as soft from cad_files where user_id= order by id desc limit 5