[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (1064) 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 ck_auction.type='sale' 
			ORDER BY ck_auction.current_price ASC LIMIT 10' at line 4 (400)
SELECT ck_kitties_genes.id, ck_kitties_genes.generation,ck_auction.current_price, ck_auction.end_price, ck_auction.end_time 
			FROM ck_kitties_genes
			LEFT JOIN ck_auction ON ck_kitties_genes.id=ck_auction.tokenid
			WHERE  ck_kitties_genes.generation IS NOT NULL AND ck_kitties_genes.generation='3' AND   AND ck_auction.type='sale' 
			ORDER BY ck_auction.current_price ASC LIMIT 10
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/www/local/components/price.floor.normal/component.php:166
#2: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:594
#3: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:653
#4: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1037
#5: CAllMain->IncludeComponent(string, string, array, boolean, array)
	/home/bitrix/www/price-floor/normal/index.php:19