Ошибка в SQL-запросе: SELECT ID_GOOD,good_url,good_visible FROM cprice_rubric_goods NATURAL JOIN cprice_goods WHERE ID_RUBRIC= and good_deleted=0 and good_visible=1 ORDER BY rubricgood_pos, ID_GOOD : 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 ORDER BY rubricgood_pos, ID_GOOD' at line 3