You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
count(*) AS aggregate
FROM
(
SELECT
`stories`.*
FROM
`stories`
INNER JOIN `taggables` AS `taggables_scopewithalltags_1` ON `stories`.`id` = `taggables_scopewithalltags_1`.`taggable_id`
AND `taggables_scopewithalltags_1`.`taggable_type` = App \ Models \ Story
WHERE
`published_at` IS NOT NULL
AND `published_at` <= 2024 -02 -06 11: 34: 35
AND `taggables_scopewithalltags_1`.`tag_id` IN (1)
AND `stories`.`deleted_at` IS NULL
GROUP BY
`stories`.`id`
HAVING
COUNT(DISTINCT taggables_scopewithalltags_1.tag_id) = 1
) AS `temp_table`
Yeah, this is a bit of a known issue. The fix (as far as I understand it to be), would be to change the code so that the generated SQL is changed from:
Looks like queries are not compatible with SQL strict mode.
Simple code will cause an issue:
SQLSTATE[42000]: Syntax error or access violation: 1055 'website.stories.user_id' isn't in GROUP BY
The text was updated successfully, but these errors were encountered: