MySQL 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 ')
AND
LEFT(d.title,1) =''
AND
d.dltype=t.id
AND
' at line 10
Attempted query:
SELECT
d.*,t.downloadtype,r.*
FROM
dltypes t, downloads d
INNER JOIN
ratings r
ON
r.id = d.id
WHERE
()
AND
LEFT(d.title,1) =''
AND
d.dltype=t.id
AND
d.ready = 1
AND
d.status = '1'
ORDER BY
d.title, d.title
LIMIT 400