Ошибка в SQL:
SELECT * FROM adverts LEFT JOIN adverts_type at ON adverts.type = at.id WHERE all_photo = 1 ORDER BY date LIMIT -60,60
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 '-60,60' at line 1