select * from table_info where class1 ='简介and class2='简介' and isVisible=1 order by id asc limit 1
是因为你的SQL语句错误了,你看那个简介少了个'号。加上去估计就不会出错了。
还有MYSQL查询值最好加''