我有这样的字符串:
SELECT
DISTINCT(l.lead_id),
l.*, TIMESTAMPDIFF(HOUR, l.added_date, NOW()) as time_elapsed
FROM
leads as l
WHERE
(
l.name LIKE '%Nastya%'
|| l.first_name LIKE '%Nastya%'
|| l.nick_name LIKE '%Nastya%'
|| l.name_vorname_partner LIKE '%Nastya%'
)
AND l.is_active = ?
AND l.is_archive = ?
AND dont_show_in_list=0
ORDER BY
datum_event asc`
我有这样的数组:
Array
(
[l.is_active] => 1
[l.is_archive] => 0
)
如何将设置l.is_active
和l.is_archive
传递给字符串?