DB Query Error
select c.id, cd.name, p.brand, pd.shortDescription from 3ppp3_categories c, 3ppp3_products p, 3ppp3_categories_description cd, 3ppp3_products_descriptions pd, 3ppp3_products_groups pg, peachproducts_products sp where sp.country = 1 AND cd.category=c.id and p.id = sp.id and pg.`group`=c.id and p.id=pd.product and p.id=pg.product and cd.language= and pd.language= and p.id = 314455
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 'and pd.language= and p.id = 314455' at line 8
array(1) {
  [0]=>
  array(7) {
    ["file"]=>
    string(48) "/var/www/clients/client34/web111/web/handler.php"
    ["line"]=>
    int(751)
    ["function"]=>
    string(8) "DB_query"
    ["class"]=>
    string(2) "DB"
    ["object"]=>
    object(DB)#2 (1) {
      ["db_handle"]=>
      resource(2) of type (mysql link)
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      &string(415) "select c.id, cd.name, p.brand, pd.shortDescription from 3ppp3_categories c, 3ppp3_products p, 3ppp3_categories_description cd, 3ppp3_products_descriptions pd,  3ppp3_products_groups pg, peachproducts_products sp
				where  sp.country = 1 AND cd.category=c.id
				and p.id = sp.id
				and pg.`group`=c.id
				and p.id=pd.product
				and p.id=pg.product
				and cd.language=
				and pd.language=
				and p.id = 314455"
    }
  }
}