Skip to content

SQLSTATE[42000]: Syntax error or access violation: 1055 'website.stories.user_id' isn't in GROUP BY #145

Open
@therezor

Description

@therezor

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

 Story::published()->withAllTags($this->tag)->count()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions