This SQL Error Info!

Present time:

2014-04-25 13:25 PM

Http Host:

www.iticket.tw

Server Name:

www.iticket.tw

Server Software:

Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 PHP/5.2.13

Host IP Address:

54.243.12.156

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 * FROM it_tickets WHERE aid= and isstop='Y' ORDER BY RAND() LIMIT 2