This SQL Error Info!

Present time:

2015-07-06 23:44 PM

Http Host:

www.iticket.tw

Server Name:

www.iticket.tw

Server Software:

Apache/2.2.22 (Ubuntu)

Host IP Address:

54.166.191.159

Remote User Agent:

CCBot/2.0 (http://commoncrawl.org/faq/);

The Error number:

1064

The specific Error was:

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 isstop='Y' ORDER BY RAND() LIMIT 2' at line 1

SQL Query :

SELECT id,name,productno FROM it_tickets WHERE aid= and isstop='Y' ORDER BY RAND() LIMIT 2