Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Subqueries in WHERE clause

Open
#254 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php, sql

Research direction

Reproduce the supplied SQL query with the parser and trace how WHERE expressions and nested SELECTs are handled. The issue names no file or test, so locate the relevant parser coverage first. Done means the subquery in the WHERE clause is identified correctly.

Written by the indexing model from the issue text.

Description

bug enhancement

The parser doesn't seem to identify subqueries in where clauses, such as:

SELECT * FROM tableA WHERE id IN (SELECT id FROM tableB)
Dominant language
PHP
Stars
485
Forks
119
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from phpmyadmin/sql-parser

All issues in phpmyadmin/sql-parser

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.