Error: A problem was encountered while executing this query.insert into temp_union(restaurant_name, address1, city, country, state, zipcode, website, phone, reservation, fromtable, resid) select res_name, address, city, country, state, zipcode, website, phone, CONCAT('http://www.dining-reservations.com/reservation.php?rc=',code) as reservation, 2 as fromtable, res_id as resid from restaurant where 1 and res_id<>1 and state='CA' and country='US'