tworzę zapytanie do mysql - pobieram dane,
Gdy testuję jest ok:
->where('email = "adres@mejlowy.pl"');
ale, gdy chcę podać konkretny mejl - już nie:
$mejl = 'adres@mejlowy.pl'; ->where('email = ' . $mejl);
Otrzymuję komunikat: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@mejlowy.pl'
Pomożecie?