25 | | ('SELECT `doska_type`.`id`, `doska_type`.`slug`, `doska_type`.`weight`, COUNT(`doska_active_new`.`id`) AS `count` FROM `doska_type` LEFT OUTER JOIN `doska_active_new` ON (`doska_type`.`id` = `doska_active_new`.`type_id`) WHERE (`doska_active_new`.`rubrica_id` = %s AND `doska_active_new`.`user_id` IN (%s, %s, %s)) GROUP BY `doska_type`.`id` ORDER BY `doska_type`.`weight` ASC', (112, 1, 2, 3)) |
| 29 | #!sql |
| 30 | ('SELECT `doska_type`.`id`, `doska_type`.`slug`, |
| 31 | `doska_type`.`weight`, COUNT(`doska_active_new`.`id`) AS `count` |
| 32 | FROM `doska_type` LEFT OUTER JOIN `doska_active_new` |
| 33 | ON (`doska_type`.`id` = `doska_active_new`.`type_id`) |
| 34 | WHERE (`doska_active_new`.`rubrica_id` = %s |
| 35 | AND `doska_active_new`.`user_id` IN (%s, %s, %s)) |
| 36 | GROUP BY `doska_type`.`id` |
| 37 | ORDER BY `doska_type`.`weight` ASC', (112, 1, 2, 3)) |
35 | | ('SELECT `doska_type`.`id`, `doska_type`.`slug`, `doska_type`.`weight`, COUNT(`doska_active_new`.`id`) AS `count` FROM `doska_type` LEFT OUTER JOIN `doska_active_new` ON (`doska_type`.`id` = `doska_active_new`.`type_id`) WHERE (`doska_active_new`.`rubrica_id` = %s AND NOT (`doska_type`.`id` IN (SELECT U1.`type_id` FROM `doska_active_new` U1 WHERE U1.`user_id` IN (%s, %s, %s)))) GROUP BY `doska_type`.`id` ORDER BY `doska_type`.`weight` ASC', (112, 1, 2, 3)) |
| 50 | #!sql |
| 51 | ('SELECT `doska_type`.`id`, `doska_type`.`slug`, |
| 52 | `doska_type`.`weight`, COUNT(`doska_active_new`.`id`) AS `count` |
| 53 | FROM `doska_type` LEFT OUTER JOIN `doska_active_new` |
| 54 | ON (`doska_type`.`id` = `doska_active_new`.`type_id`) |
| 55 | WHERE (`doska_active_new`.`rubrica_id` = %s |
| 56 | AND NOT (`doska_type`.`id` IN ( |
| 57 | SELECT U1.`type_id` |
| 58 | FROM `doska_active_new` U1 |
| 59 | WHERE U1.`user_id` IN (%s, %s, %s)))) |
| 60 | GROUP BY `doska_type`.`id` |
| 61 | ORDER BY `doska_type`.`weight` ASC', (112, 1, 2, 3)) |