You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND date="2019-05-26" ORDER BY advertisement_impression.ID' at line 1
#1 Function trace_message in "/disk2/home/lethliv/public_html/include/db.class.php" at line 20.
#2 Function runQuery in "/disk2/home/lethliv/public_html/include/db.class.php" at line 278.
#3 Function selectFieldsWhere in "/disk2/home/lethliv/public_html/include/db.class.php" at line 250.
#4 Function selectWhere in "/disk2/home/lethliv/public_html/draw/plugin/advertisement.draw.php" at line 70.
#5 Function track in "/disk2/home/lethliv/public_html/draw/plugin/advertisement.draw.php" at line 82.
#6 Function redirect in "/disk2/home/lethliv/public_html/index.php" at line 91.