Code: Select all
SELECT * FROM contracts where `status` in (:Status) order by id desc limit 50;
The Parameter Status is a list off Strings.
This is an Exampel off the SQL Statment without Parameters:
Code: Select all
SELECT * FROM contracts where `status` in ('Eingestellt','Versendet','Kein Interesse') order by id desc limit 50;
Code: Select all
SELECT * FROM contracts where `status` in ("'Eingestellt','Versendet','Kein Interesse'") order by id desc limit 50;
Thanks for your Help!