我有以下一组带有附加查询的表。显然,我在其中填充了太多AND
子句,现在没有结果是有效的,即使是结果。下面显示的是我正在使用的图表和 SQL。
SELECT p.products_id, pd.language_id, pd.products_name,
pd.products_description, pd.products_url, p.products_quantity,
p.products_model, p.products_image, p.products_price, p.products_virtual,
p.products_weight, p.products_date_added, p.products_last_modified,
p.products_date_available, p.products_status, p.manufacturers_id,
p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
p.product_is_free, p.product_is_call, p.products_quantity_mixed,
p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max, p.products_sort_order,
FROM `magez_products` p, `magez_products_description` pd
WHERE p.products_id = pd.products_id
AND p.products_id = 186
AND p.products_id = cfv.products_id
AND cfv.nation_id = cfvn.nation_id
AND cfv.clan_id = cfvc.clan_id
AND cfv.rarity_id = cfvr.rarity_id