I have used this same format of an INSERT ... SELECT statment many times, and once again I'm trying to use it to creat a copy of an order. However, this query is not working on the live site. It works just fine when I run it on my machine and on another server though of course. :bemused: Here's the query:
INSERT INTO order_header( order_received_on, order_po_num )
SELECT 1130516213 , orig_order_header.order_po_num
FROM order_header AS orig_order_header
WHERE orig_order_header.order_id = 14
And on the site, it spits out this error to me:
INSERT TABLE 'order_header' isn't allowed in FROM table list
This site is running MySQL 3.23.56.
Any ideas?
Thx,
Shaun