06.05.2013, 20:59
That's odd, because you should be getting errors. Your query is wrong. You don't have the %s of LastIp between quotes, which is a must for strings. Secondly, the list is of values is to be separated by commas only. No AND is required.