select * from popups where idSpace=2 and (active=1 or authorized_ips like '%18.97.14.85%') and (id in (select idPopup from popups_pages where url like '/?gad_source=1&gad_campaignid=1628460225&gbraid=0AAAAADiEam1al3NEcsShnqoHKYkWfWOBU&gclid=Cj0KCQjw54nRBhDCARIsAMcY_SBhUnsBpgXgmjFeJr5C9nw2U_3aorKIKk37WOnwS-QCI2bvPYrh2_8aAt9BEALw_wcB' and active=1) or id not in (select idPopup from popups_pages where active=1))
18.97.14.85



























































