I'm having problems with this block of code. The error is next to LIKE. This is the code ...
try {
$st = $db->query('SELECT', "SELECT a.`fast_cash` as `fast`, a.`urgent_cash` as `urgent`, b.`store_name` as `store` FROM `Locations` a LEFT JOIN `loan_balances` b ON b.`store_name` LIKE '%' + a.`nick` + '%'", 'array');
} catch (Exception $e) {
echo $e->getMessage();
}
source
share