Query Error: select s.uid,d.shopname,sd.storename,sd.aboutme,s.* from pw_shopperdata sd,pw_shopper s,pw_domain d,pw_ypclass y where sd.uid=s.uid and sd.uid=d.uid and s.groupid=29 and sd.storeid=y.cid and (y.cid= or y.cup=) order by rand() limit 3

The URL Is:
http://www.chinesetown.co.nz/directory_details.php?job=show&uid=57967

MySQL Server 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 'or y.cup=) order by rand() limit 3' at line 1 ( 1064 )

You Can Get Help In:
http://www.Chinesetown.co.nz