QUERY:
SELECT t.*,
DATE_FORMAT(t.date_added, '%a, %b %D') AS date_str,
DATE_FORMAT(t.date_added, '%l:%i%p') AS time_str
FROM movies AS t
WHERE 1 AND = '1'
ORDER BY sort_
LIMIT 1000
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 '= '1'
ORDER BY sort_
LIMIT 1000' at line 5
QUERY:
SELECT t.*,
DATE_FORMAT(t.date_added, '%a, %b %D') AS date_str,
DATE_FORMAT(t.date_added, '%l:%i%p') AS time_str
FROM movies AS t
WHERE = '1'
ORDER BY RAND()
LIMIT 1
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 '= '1'
ORDER BY RAND()
LIMIT 1' at line 5