ERROR: Unable to execute query

SELECT * FROM video WHERE type='public' AND active=1 AND approve=1 ORDER BY addtime DESC LIMIT 0,

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 '' at line 1
How do I fix it?

Thank you