Hi,
I’m trying to create a SELECT statement to insert an image reference into all evetns with a particular ID and particular EventOrganizerID but I’m not getting anywhere. My SQL is as follows:
SELECT * FROM wp_sopostmeta
UPDATE meta_id->_thumbnail_id
SET meta_id->_thumbnail_id = ‘91273’
WHERE post_id = “91180” AND _EventOrganizerID = “245”;
I keep getting errors like this:
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘UPDATE _thumbnail_id SET meta_value = ‘91273’ WHERE post_id = “91180” AND ‘ at line 2