I don't know if it's possible but this is what I want:
UPDATE `tbl_users` SET (SELECT `category` FROM `tbl_items` WHERE id = ?) = (SELECT `item` FROM `tbl_items` WHERE id = ?) WHERE id = ?
but this isn't possible I get this error in PHP:
Fatal error: Call to a member function bind_param() on a non-object in.
I want to update a column from tbl_users which name of the column is in tbl_items.