MySQL COUNT function not performing as I would like in multiple joined query
问题 I have been altering a query for a while now, reading many posts on this wonderful site to get to where I am with this so far. But, alas, now I am stuck :( This query and relevant part of the database I have designed is similar to the youtube comment liking system. Relevant tables and fields are: USRS usr_id int (PK) COMMENTS comment_id int (PK) usr_id int (FK) references usrs(usr_id) topic_id int (FK) references topics(topic_id) descr varchar created varchar COMMENT_LIKERS comment_id int (PK