added one statement to the getTitles query.