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