Plz help,
I have the following query which runs fine without the insert
statment.
INSERT INTO `db_x`.`attributes` (id, typeid, value, start_time,
end_time)
SELECT distinct i.id,
at.id AS typeid,
d.megapixels AS value,
NULL AS start_time,
NULL AS end_time
FROM...