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 'LIMIT 1' at line 20
SELECT p_name AS p_name, p_description AS p_description, p_dostavka, p_price AS p_price, p_old_price AS p_old_price, p_cat_id, p_bundle, pc_name AS pc_name, pc_left, pc_right, pc_level, p_promo, p_price_promo FROM tbl_products JOIN tbl_prod_cat ON p_cat_id = pc_id WHERE p_id = LIMIT 1