i tried the CakePHP 3.x \"Bookmaker Tutorial\" and i followed the instruction step by step. Unfortunately, at the end of the first chapter i get the attached error:
In addition to tadman's comment, for tutorial you are following, you should distinct your sql select query by both Bookmarks.id and BookmarksTags.tag_id, instead of just Bookmarks.id
To do that, in BookmarksTable.php file, line
->distinct(['Bookmarks.id'])
should look like
->distinct(['Bookmarks.id', 'BookmarksTags.tag_id'])