Unknown column 'XXX' in 'where clause' - SELECT * FROM `links_clicks_in` WHERE `datetime` > '2018-01-18 13:44:29' AND `link_id` =XXX AND `ip` LIKE '54.234.45.10'