AntiPattern
SQL Query Logic Mismatch
sql-semantic-mismatch
SQL fails because query semantics and client string/casting differ from what the developer assumes, leading to wrong filtering (NOT IN vs EXISTS), mis-handled LIMIT/loop flow, and malformed text in dynamic/batched statements.