Table 'trailspace.product_totals' doesn't exist
SELECT
product.product_id,
brand.brand_id,
brand.short_name AS brand,
brand.url_stub AS brand_url_stub,
product.product_name,
product.producttype_id AS producttype_id,
product.gender,
product.url_stub,
product.description,
product.manufacturer_description,
UNIX_TIMESTAMP(product.date_available) AS date_available,
product.date_available_note,
product.price_msrp,
product.specs,
# GROUP_CONCAT(DISTINCT(IF(product.gender IN('u'),'m,w',IF(product.gender IN('b','g'),'k',product.gender)))) AS genders,
product_totals.overall_average_rating AS average_rating,
product_totals.overall_num_reviews AS num_reviews,
product_totals.num_retailers
FROM
(
product,
brand
)
LEFT JOIN
product_totals
ON
product_totals.product_id = product.product_id
WHERE
product.url_stub = 'pegasus-dry'
AND brand.brand_id = product.brand_id
AND brand.brand_id = '73'
GROUP BY
product.producttype_id
ORDER BY
product.producttype_id