You don’t need a select statement to do this, a DELETE
statement can handle finding the records. Make sure to backup your database first, then try the following SQL query.
DELETE FROM wp_postmeta
WHERE meta_key = 'cb_full_width_post'
AND meta_value != 'nosidebar-narrow'