1
#and ip = 2
and ip = 1
works as expected with limit:
SELECT * FROM `db`.`ip` WHERE 1
#and ip = 2
and ip = 1 LIMIT 1000;
but when comment last row:
1
and ip = 2
#and ip = 1
works without limit:
SELECT * FROM `kpitv_db`.`ip` WHERE 1
and ip = 2
#and ip = 1 LIMIT 1000;