fetchAll( "SELECT customer_id, email, name, phone, wallet_balance, reward_points FROM customers WHERE (email LIKE :q OR name LIKE :q OR phone LIKE :q) AND is_active = 1 ORDER BY name ASC LIMIT 20", ['q' => '%' . $query . '%'] ); jsonResponse($customers);