SELECT count(1) as exist FROM users u LEFT JOIN user_details ud ON ud.user_id = u.id WHERE u.email = $prefill_data.users.email AND u.status_id = 1 AND CONCAT($prefill_data.user_details.first_name, ' ', $prefill_data.user_details.last_name) ILIKE '%Mukesh%'