Ошибка в SQL-запросе: 
SELECT cprice_goods.ID_GOOD FROM cprice_rubric_goods NATURAL JOIN cprice_goods NATURAL JOIN cprice_goods_features WHERE ID_RUBRIC= and good_deleted=0 and good_visible=1 and goodfeature_value=104 and ID_FEATURE=372 ORDER BY ID_GOOD DESC LIMIT 500 : 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 good_deleted=0 and good_visible=1 and goodfeature_value=104 and ID_FEATURE=3' at line 3
    
      
        | Вид работы | 
        Кол-во листов | 
        Мин.цена | 
        Нормальный срок выполнения |