Error in query SELECT company FROM tbl_registration WHERE registration_num=''6%X' LIMIT 1