Unknown column 'notes' in 'where clause'--select * from chapters where book_id='46' and chapter_number=notes