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 ordem asc' at line 1

select * from Emp_media where tipo = "media_emp" and emp_id = order by ordem asc

Filename: controllers/Home.php

Line Number: 927