MySQL_Exception


You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') and active = '1' ORDER BY approvdate desc LIMIT 5' at line 1


 SELECT * , TIME_FORMAT( SEC_TO_TIME( duration ) ,  '%H: %i: %s' ) as newduration FROM video WHERE 1  AND (title like '%%' and VID != ) and active = '1'  ORDER BY approvdate desc LIMIT 5