Подскажитепо жалуйста что это за ошибка SQL
MYSQL ERROR REPORT
- 06/09/2010 19:09:27
---------------------------------------
1064 - 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 '' at line 26
select
p.*,
pd.*,
pef1.products_extra_fields_value as shir,
pef2.products_extra_fields_value as diam,
pef3.products_extra_fields_value as vys,
pef4.products_extra_fields_value as sezon,
pef5.products_extra_fields_value as tip,
pef6.products_extra_fields_value as pcd,
pef7.products_extra_fields_value as et,
pef8.products_extra_fields_value as indn,
pef9.products_extra_fields_value as inds
from
products p
left join products_description pd on (p.products_id = pd.products_id)
left join products_to_categories p2c on (p2c.products_id = p.products_id)
left join products_to_products_extra_fields pef1 on (p.products_id = pef1.products_id and pef1.products_extra_fields_id = 14)
left join products_to_products_extra_fields pef2 on (p.products_id = pef2.products_id and pef2.products_extra_fields_id = 16)
left join products_to_products_extra_fields pef3 on (p.products_id = pef3.products_id and pef3.products_extra_fields_id = 15)
left join products_to_products_extra_fields pef4 on (p.products_id = pef4.products_id and pef4.products_extra_fields_id = 12)
left join products_to_products_extra_fields pef5 on (p.products_id = pef5.products_id and pef5.products_extra_fields_id = 21)
left join products_to_products_extra_fields pef6 on (p.products_id = pef6.products_id and pef6.products_extra_fields_id = 22)
left join products_to_products_extra_fields pef7 on (p.products_id = pef7.products_id and pef7.products_extra_fields_id = 23)
left join products_to_products_extra_fields pef8 on (p.products_id = pef8.products_id and pef8.products_extra_fields_id = 17)
left join products_to_products_extra_fields pef9 on (p.products_id = pef9.products_id and pef9.products_extra_fields_id = 18)
where p2c.categories_id =
---------------------------------------
Server Name : tiresworld.com.ua
Remote Address: 66.249.66.27
Referer :
Requested : /product_info.php/info/p46405_Fulda-Conveo-Tour-205-65-R16C-107-105R.html
Trace Back : redirector.php:90(includearray(1) {; [0]=>; string(54) "product_info.php"; }; ) => product_info.php:58(includearray(1) {; [0]=>; string(71) "includes/modules/product_info.php"; }; ) => includes/modules/product_info.php:341(vam_db_queryarray(1) {; [0]=>; &string(1738) "
; select
; p.*,
; pd.*,
; pef1.products_extra_fields_value as shir,
; pef2.products_extra_fields_value as diam,
; pef3.products_extra_fields_value as vys,
; pef4.products_extra_fields_value as sezon,
; pef5.products_extra_fields_value as tip,
; pef6.products_extra_fields_value as pcd,
; pef7.products_extra_fields_value as et,
; pef8.products_extra_fields_value as indn,
; pef9.products_extra_fields_value as inds
; from
; products p
; left join products_description pd on (p.products_id = pd.products_id)
; left join products_to_categories p2c on (p2c.products_id = p.products_id)
; left join products_to_products_extra_fields pef1 on (p.products_id = pef1.products_id and pef1.products_extra_fields_id = 14)
; left join products_to_products_extra_fields pef2 on (p.products_id = pef2.products_id and pef2.products_extra_fields_id = 16)
; left join products_to_products_extra_fields pef3 on (p.products_id = pef3.products_id and pef3.products_extra_fields_id = 15)
; left join products_to_products_extra_fields pef4 on (p.products_id = pef4.products_id and pef4.products_extra_fields_id = 12)
; left join products_to_products_extra_fields pef5 on (p.products_id = pef5.products_id and pef5.products_extra_fields_id = 21)
; left join products_to_products_extra_fields pef6 on (p.products_id = pef6.products_id and pef6.products_extra_fields_id = 22)
; left join products_to_products_extra_fields pef7 on (p.products_id = pef7.products_id and pef7.products_extra_fields_id = 23)
; left join products_to_products_extra_fields pef8 on (p.products_id = pef8.products_id and pef8.products_extra_fields_id = 17)
; left join products_to_products_extra_fields pef9 on (p.products_id = pef9.products_id and pef9.products_extra_fields_id = 18)
; where p2c.categories_id = "; }; ) => inc/vam_db_query.inc.php:34(vam_db_errorarray(3) {; [0]=>; &string(1738) "
; select
; p.*,
; pd.*,
; pef1.products_extra_fields_value as shir,
; pef2.products_extra_fields_value as diam,
; pef3.products_extra_fields_value as vys,
; pef4.products_extra_fields_value as sezon,
; pef5.products_extra_fields_value as tip,
; pef6.products_extra_fields_value as pcd,
; pef7.products_extra_fields_value as et,
; pef8.products_extra_fields_value as indn,
; pef9.products_extra_fields_value as inds
; from
; products p
; left join products_description pd on (p.products_id = pd.products_id)
; left join products_to_categories p2c on (p2c.products_id = p.products_id)
; left join products_to_products_extra_fields pef1 on (p.products_id = pef1.products_id and pef1.products_extra_fields_id = 14)
; left join products_to_products_extra_fields pef2 on (p.products_id = pef2.products_id and pef2.products_extra_fields_id = 16)
; left join products_to_products_extra_fields pef3 on (p.products_id = pef3.products_id and pef3.products_extra_fields_id = 15)
; left join products_to_products_extra_fields pef4 on (p.products_id = pef4.products_id and pef4.products_extra_fields_id = 12)
; left join products_to_products_extra_fields pef5 on (p.products_id = pef5.products_id and pef5.products_extra_fields_id = 21)
; left join products_to_products_extra_fields pef6 on (p.products_id = pef6.products_id and pef6.products_extra_fields_id = 22)
; left join products_to_products_extra_fields pef7 on (p.products_id = pef7.products_id and pef7.products_extra_fields_id = 23)
; left join products_to_products_extra_fields pef8 on (p.products_id = pef8.products_id and pef8.products_extra_fields_id = 17)
; left join products_to_products_extra_fields pef9 on (p.products_id = pef9.products_id and pef9.products_extra_fields_id = 18)
; where p2c.categories_id = "; [1]=>; &int(1064); [2]=>; &string(147) "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 '' at line 26"; }; )
Уже полдня бьюсь, вчера все было нормально а сегоня началось особо ничего не делал.
MYSQL ERROR REPORT
- 06/09/2010 19:09:27
---------------------------------------
1064 - 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 '' at line 26
select
p.*,
pd.*,
pef1.products_extra_fields_value as shir,
pef2.products_extra_fields_value as diam,
pef3.products_extra_fields_value as vys,
pef4.products_extra_fields_value as sezon,
pef5.products_extra_fields_value as tip,
pef6.products_extra_fields_value as pcd,
pef7.products_extra_fields_value as et,
pef8.products_extra_fields_value as indn,
pef9.products_extra_fields_value as inds
from
products p
left join products_description pd on (p.products_id = pd.products_id)
left join products_to_categories p2c on (p2c.products_id = p.products_id)
left join products_to_products_extra_fields pef1 on (p.products_id = pef1.products_id and pef1.products_extra_fields_id = 14)
left join products_to_products_extra_fields pef2 on (p.products_id = pef2.products_id and pef2.products_extra_fields_id = 16)
left join products_to_products_extra_fields pef3 on (p.products_id = pef3.products_id and pef3.products_extra_fields_id = 15)
left join products_to_products_extra_fields pef4 on (p.products_id = pef4.products_id and pef4.products_extra_fields_id = 12)
left join products_to_products_extra_fields pef5 on (p.products_id = pef5.products_id and pef5.products_extra_fields_id = 21)
left join products_to_products_extra_fields pef6 on (p.products_id = pef6.products_id and pef6.products_extra_fields_id = 22)
left join products_to_products_extra_fields pef7 on (p.products_id = pef7.products_id and pef7.products_extra_fields_id = 23)
left join products_to_products_extra_fields pef8 on (p.products_id = pef8.products_id and pef8.products_extra_fields_id = 17)
left join products_to_products_extra_fields pef9 on (p.products_id = pef9.products_id and pef9.products_extra_fields_id = 18)
where p2c.categories_id =
---------------------------------------
Server Name : tiresworld.com.ua
Remote Address: 66.249.66.27
Referer :
Requested : /product_info.php/info/p46405_Fulda-Conveo-Tour-205-65-R16C-107-105R.html
Trace Back : redirector.php:90(includearray(1) {; [0]=>; string(54) "product_info.php"; }; ) => product_info.php:58(includearray(1) {; [0]=>; string(71) "includes/modules/product_info.php"; }; ) => includes/modules/product_info.php:341(vam_db_queryarray(1) {; [0]=>; &string(1738) "
; select
; p.*,
; pd.*,
; pef1.products_extra_fields_value as shir,
; pef2.products_extra_fields_value as diam,
; pef3.products_extra_fields_value as vys,
; pef4.products_extra_fields_value as sezon,
; pef5.products_extra_fields_value as tip,
; pef6.products_extra_fields_value as pcd,
; pef7.products_extra_fields_value as et,
; pef8.products_extra_fields_value as indn,
; pef9.products_extra_fields_value as inds
; from
; products p
; left join products_description pd on (p.products_id = pd.products_id)
; left join products_to_categories p2c on (p2c.products_id = p.products_id)
; left join products_to_products_extra_fields pef1 on (p.products_id = pef1.products_id and pef1.products_extra_fields_id = 14)
; left join products_to_products_extra_fields pef2 on (p.products_id = pef2.products_id and pef2.products_extra_fields_id = 16)
; left join products_to_products_extra_fields pef3 on (p.products_id = pef3.products_id and pef3.products_extra_fields_id = 15)
; left join products_to_products_extra_fields pef4 on (p.products_id = pef4.products_id and pef4.products_extra_fields_id = 12)
; left join products_to_products_extra_fields pef5 on (p.products_id = pef5.products_id and pef5.products_extra_fields_id = 21)
; left join products_to_products_extra_fields pef6 on (p.products_id = pef6.products_id and pef6.products_extra_fields_id = 22)
; left join products_to_products_extra_fields pef7 on (p.products_id = pef7.products_id and pef7.products_extra_fields_id = 23)
; left join products_to_products_extra_fields pef8 on (p.products_id = pef8.products_id and pef8.products_extra_fields_id = 17)
; left join products_to_products_extra_fields pef9 on (p.products_id = pef9.products_id and pef9.products_extra_fields_id = 18)
; where p2c.categories_id = "; }; ) => inc/vam_db_query.inc.php:34(vam_db_errorarray(3) {; [0]=>; &string(1738) "
; select
; p.*,
; pd.*,
; pef1.products_extra_fields_value as shir,
; pef2.products_extra_fields_value as diam,
; pef3.products_extra_fields_value as vys,
; pef4.products_extra_fields_value as sezon,
; pef5.products_extra_fields_value as tip,
; pef6.products_extra_fields_value as pcd,
; pef7.products_extra_fields_value as et,
; pef8.products_extra_fields_value as indn,
; pef9.products_extra_fields_value as inds
; from
; products p
; left join products_description pd on (p.products_id = pd.products_id)
; left join products_to_categories p2c on (p2c.products_id = p.products_id)
; left join products_to_products_extra_fields pef1 on (p.products_id = pef1.products_id and pef1.products_extra_fields_id = 14)
; left join products_to_products_extra_fields pef2 on (p.products_id = pef2.products_id and pef2.products_extra_fields_id = 16)
; left join products_to_products_extra_fields pef3 on (p.products_id = pef3.products_id and pef3.products_extra_fields_id = 15)
; left join products_to_products_extra_fields pef4 on (p.products_id = pef4.products_id and pef4.products_extra_fields_id = 12)
; left join products_to_products_extra_fields pef5 on (p.products_id = pef5.products_id and pef5.products_extra_fields_id = 21)
; left join products_to_products_extra_fields pef6 on (p.products_id = pef6.products_id and pef6.products_extra_fields_id = 22)
; left join products_to_products_extra_fields pef7 on (p.products_id = pef7.products_id and pef7.products_extra_fields_id = 23)
; left join products_to_products_extra_fields pef8 on (p.products_id = pef8.products_id and pef8.products_extra_fields_id = 17)
; left join products_to_products_extra_fields pef9 on (p.products_id = pef9.products_id and pef9.products_extra_fields_id = 18)
; where p2c.categories_id = "; [1]=>; &int(1064); [2]=>; &string(147) "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 '' at line 26"; }; )
Уже полдня бьюсь, вчера все было нормально а сегоня началось особо ничего не делал.