I am using FluentPDO to handle my database queries. Upon looking at it's code, it doesn't seem to use any form of escaping. I understand PDO solves a lot of security issues by itself, but it's not immune to them.
As I understand, it is immune to SQL injection as long as we use the prepared statements syntax featured at it's homepage:
$query = $fpdo->from('article')
->where('published_at > ?', $date) // HERE!!
->orderBy('published_at DESC')
->limit(5);
How about escaping variables to prevent second order SQL injection? Would simply using addslashes() suffice? Would it be redundant? How should I handle security with this library?
Thanks!