I have sql query:
$query= "SELECT * FROM files ORDER BY id DESC LIMIT $from, $site WHERE custom > 0";
but not work, i have notice:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax
What i do wrong?