可能重复:
$total_pages = $total_pages[num];
$page = mysql_escape_string($_' and category= '$categories' and type ='$vtype' order by id DESC LIMIT $start, $limit&q
其他问题是关于不返回结果,但我的问题抛出了一个SQL错误。= -1 AND CUSTOMER.CUST_FNAME LIKE '%k%' LIMIT 0, 15
当我在PHP中运行它时,它会给出以下错误:where子句中未知列'CUSTOMER.CUST_FNAME‘,但是当我直接通过MySQL运行它(我通过连接到数据库的程序运行它),它返回我想要的结果,没有错误</