Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'gkrastev'@'localhost' (using password: YES) in /home/gkrastev/public_html/img.perfumedeals.com/inventory_images/includes/functions/database.php on line 42

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/gkrastev/public_html/img.perfumedeals.com/inventory_images/includes/functions/database.php on line 92
1045 - Access denied for user 'gkrastev'@'localhost' (using password: YES)

select s.code, pi.sku, pi.supplier_id, pi.image, pi.image_local, pn.products_id, pn.products_image from products_import pi join products_new pn on pi.supplier_id = pn.supplier_id and pi.sku = pn.products_model join suppliers s on s.id = pi.supplier_id where pn.inventory_item = 'Y' and pn.products_status = 1 and pn.products_id in (1046316) order by pn.products_date_added