Should be:
$stg = $dbh->prepare('SELECT REFERENCE, REQUIREMENTS FROM TestCasesOutput WHERE PassFail = "fail"');
BTW, try reading Writeups Formatting Tips and How do I post a question effectively?, they can help you a lot.
deibyz
In reply to Re^3: SQL error
by deibyz
in thread SQL error
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |