select * from popup where 1=1 and (dataini<='2018-07-17 14:21:49' and datafim>='2018-07-17 14:21:49') and mostrar='A' order by datafim ASC LIMIT 1
Fatal error: Call to a member function getVisita() on integer in /home/thpb/public_html/internas/avisos.php on line 4