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