SELECT d.sbjnum, d.name, d.scan_no, c.scanner
FROM data AS d
INNER JOIN check AS c ON d.sbjnum = c.sbjnum
Database query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'check AS c ON d.sbjnum = c.sbjnum' at line 3
Do not know what I am doing wrong!