2015-05-12 101 views
1

我正面臨此錯誤。
WordPress數據庫錯誤 您的SQL語法錯誤;檢查對應於你的MySQL服務器版本,在1號線附近使用'查詢WordPress數據庫錯誤您在SQL語法中有錯誤

SELECT * 
FROM wp_author_favorite 
WHERE post_id = 1743 
AND author_id = made by require('D:\INETPUB\VHOSTS\engeniuspark.in\sos.engeniuspark.in\wp-blog-header.php'), 
require_once('D:\INETPUB\VHOSTS\engeniuspark.in\sos.engeniuspark.in\wp-includes\template-loader.php'), 
include('D:\INETPUB\VHOSTS\engeniuspark.in\sos.engeniuspark.in\wp-content\themes\theme-name\single.php'), 
wp_authors_favorite_check 
+0

你有一個WHERE子句沒有收到任何輸入,您的author_id =未被填寫 –

回答

0

您需要正確的語法手冊給AND author_id =

SELECT * 
FROM wp_author_favorite 
WHERE post_id = 1743 
AND author_id = 1234 /*For example*/ 
made by require('D:\INETPUB\VHOSTS\engeniuspark.in\sos.engeniuspark.in\wp-blog-header.php'), 
require_once('D:\INETPUB\VHOSTS\engeniuspark.in\sos.engeniuspark.in\wp-includes\template-loader.php'), 
include('D:\INETPUB\VHOSTS\engeniuspark.in\sos.engeniuspark.in\wp-content\themes\theme-name\single.php'), 
wp_authors_favorite_check 
相關問題