[eluser]eldrinofsoalim[/eluser]
Thank you toopay for the quick reply! It seems that it's the exact equivalent in Active Record query. Thanks.
HOWEVER, I'm still having problem with the query since it didn't fix my problem. For some reason, when I use the query (either my original or the one given by toopay), the returned query result is incomplete.
For example,
In my "post" table, there are 3 entries AND my "like_post" table is empty. When I use the query, it should show all 3 rows with 0 NumberOfLikes.
BUT it only shows only the first entry when I use the query.
Can someone explain why my query is wrong?
Thanks!