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
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prefix_selectedQuest.quest_item_id' in 'on clause' (SQL: select * from prefix_quest_play_items left join (select quest_item_id, content_no, content_type, subject, content from prefix_quest_items where quest_set_id = 1 order by quest_item_id asc) as selectedQuest on prefix_quest_play_items.quest_item_id = prefix_selectedQuest.quest_item_id where prefix_quest_play_items.quest_play_set_id = 28) {"exception":"[object] (Illuminate\Database\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prefix_selectedQuest.quest_item_id' in 'on clause' (SQL: select * from prefix_quest_play_items left join (select quest_item_id, content_no, content_type, subject, content from prefix_quest_items where quest_set_id = 1 order by quest_item_id asc) as selectedQuest on prefix_quest_play_items.quest_item_id = prefix_selectedQuest.quest_item_id where prefix_quest_play_items.quest_play_set_id = 28) at /vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, Doctrine\DBAL\Driver\PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prefix_selectedQuest.quest_item_id' in 'on clause' at /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:63, PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prefix_selectedQuest.quest_item_id' in 'on clause' at /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:61)
So we need to explicitly add a prefix to the alias to make the function work properly:
Description:
joinSub, leftJoinSub, and rightJoinSub functions have a bug with a table prefix.
Steps To Reproduce:
Set the table prefix as 'prefix_'.
Then error has occurred:
So we need to explicitly add a prefix to the alias to make the function work properly:
The text was updated successfully, but these errors were encountered: