SELECT id, sum(money)
FROM `accounts`
WHERE date >= CURDATE() AND type = 1 AND status = 1
GROUP BY id
$words = array('Привет', 'привет', 'Хай', 'хай', 'Хэй', 'Хэллоу');
$impl = implode('%', $words);
$where = "TEXT LIKE '%{$impl}%'";
users.name as user_name, cities.name as city_name