0SELECT * FROM `locality` WHERE url = 'acadia-valley-ab' LIMIT 1
0SELECT * FROM `region` WHERE id = 168 LIMIT 1
0SELECT * FROM `category` WHERE url = 'car-repair' LIMIT 1
1SELECT locality_id, category_id, price_level FROM `category_item` WHERE locality_id = 14183 AND category_id = 100 GROUP BY locality_id, category_id, price_level
0SELECT COUNT(*) FROM `category_item` WHERE locality_id = 14183 AND category_id = 100
1SELECT * FROM category_item INNER JOIN item ON category_item.item_id = item.id WHERE category_item.locality_id = 14183 AND category_item.category_id = 100 ORDER BY item.name LIMIT 0,24
0SELECT * FROM `region` WHERE id IN ('168') LIMIT 1
0SELECT * FROM `locality` WHERE id IN ('14183') LIMIT 1
0SELECT * FROM `photos` WHERE `item_id` IN ('209981','466138','210011','210020')
0SELECT item_id, category_id FROM `category_item` WHERE item_id IN ('209981','466138','210011','210020')
0SELECT * FROM `category` WHERE id IN ('96','100') LIMIT 2
0SELECT locality_id, category_id FROM `category_item` WHERE locality_id = 14183 GROUP BY locality_id, category_id
0SELECT * FROM `category` WHERE `id` IN ('96','97','98','99','100','101','102','103','104','138') ORDER BY name
0SELECT * FROM counts where updated="2024-04-24" and table_name like 'news'
0SELECT * FROM counts where updated="2024-04-24" and table_name like 'news'
1SELECT * FROM `category` ORDER BY name
1SELECT * FROM `item` f JOIN ( SELECT RAND() * (SELECT MAX(id) FROM `item`) AS max_id ) AS m WHERE f.id >= m.max_id ORDER BY f.id ASC LIMIT 4
0SELECT * FROM `region` WHERE id IN ('174','178') LIMIT 2
0SELECT * FROM `locality` WHERE id IN ('15995','16114','17861','17699') LIMIT 4
0SELECT * FROM `photos` WHERE `item_id` IN ('78001','78002','78003','78004')
0SELECT * FROM `locality` f JOIN ( SELECT RAND() * (SELECT MAX(id) FROM `locality`) AS max_id ) AS m WHERE f.id >= m.max_id ORDER BY f.id ASC LIMIT 7
0SELECT * FROM `region` WHERE id IN ('168') LIMIT 1