I would like to count entries (lines) from two tables WHERE (in both) user_id is 12 and club is 5,8,19. I need to receive values (or array it does not matter) for each club, example (5=>24, 8=>78, 19=>56). How can I write this query please?
thank you.
Assume your tables are: user and club.