Error in query SELECT company FROM tbl_registration WHERE registration_num=''B'BX' LIMIT 1