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
















































