SELECT `MedicationProduct`.`generic_name_i` AS `generic_name_i`, COUNT(distinct MedicationProduct.medication_id) as cnt FROM `pvers`.`medication_products` AS `MedicationProduct` WHERE `MedicationProduct`.`created` > '2020-04-01 08:08:08' AND `MedicationProduct`.`generic_name_i` > '' AND `MedicationProduct`.`medication_id` IN (3, 6, 47, 52, 71, 83, 88, 104, 106, 122, 142, 145, 146, 148, 152, 153, 157, 165, 172, 186, 187, 189, 192, 193, 196, 221, 222, 223, 224, 232, 234, 235, 237, 238, 241, 247, 249, 252, 253, 262, 263, 273, 280, 283, 284, 299, 341, 384, 387, 390, 439, 463, 469, 471, 473, 476, 482, 483, 486, 487, 488, 490, 497, 499, 501, 503, 508, 514, 519, 520, 522, 525, 526, 529, 532, 546, 553, 557, 562, 563, 565, 574, 576, 577, 579, 580, 581, 584, 585, 586, 590, 592, 593, 594, 595, 596, 597, 599, 602, 605, 608, 610, 614, 616, 623, 664, 665, 666, 668, 672, 673, 674, 680, 683, 741, 778, 780, 781, 783, 785, 786, 791, 792, 793, 794, 796, 805, 808, 811, 812, 813, 814, 817, 818, 819, 821, 824, 827, 828, 829, 831, 832, 833, 835, 838, 845, 847, 849, 852, 853, 855, 869, 870, 871, 873, 876, 882, 886, 900, 901, 911, 912, 913, 914, 915, 916, 917, 919, 921, 922, 939, 943, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 958, 960, 962, 963, 964, 968, 971, 974, 976, 980, 988, 989, 990, 991, 992, 993, 1002, 1004, 1005, 1016, 1017, 1021, 1022, 1056, 1058, 1060, 1075, 1078, 1079, 1080, 1081, 1085, 1089, 1092, 1094, 1096, 1097, 1106, 1107, 1113, 1115, 1116, 1117, 1126, 1127, 1128, 1131, 1132, 1133, 1134, 1135, 1136, 1137) GROUP BY `MedicationProduct`.`generic_name_i` HAVING COUNT(distinct `MedicationProduct`.`medication_id`) > 0 | 80 | 80 | 1 | |