This SQL Error Info!

Present time:

2017-11-20 15:23 PM

Http Host:

www.anitawong.org.tw

Server Name:

www.anitawong.org.tw

Server Software:

Apache

Host IP Address:

54.156.82.247

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 'limit 1' at line 1

SQL Query :

SELECT mk_product.*,(select pic from mk_productpics where productno=mk_product.productno and istop='Y' limit 1)as pic FROM mk_product where id= limit 1