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 'DESC LIMIT 10' at line 5
File: /home/netabi/www/lib/db.php
Line: 85
Query: SELECT m.*, c.name, u.login, 0 AS comments FROM movies_categories c,users u,movies m WHERE m.category_id = c.id AND m.user_id = u.id AND m.active=1 AND u.active=1 ORDER BY rank DESC LIMIT 10