Forum Moderators: open
#1064 - 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 '' at line 4
SELECT t1.* , t2.name AS repliername, t3.centre_name
FROM ((tickets AS t1 LEFT JOIN users AS t2 ON t1.replierid = t2.id)
LEFT JOIN centres as t3 ON t3.id = t1.name
Second, I have never done "table as [placeholder]," I think those only apply to selected fields.
-------------------------------------
|date_sub(curdate(), interval 7 day)|
-------------------------------------
|2010-08-25.............................|
-------------------------------------
-----------
|last_week|
-----------
|2010-08-25|
-----------
(it also uses `backticks` but I've taken those out).