subquery bug fixed. it caused because sqlite3 replace one question mark, but mysql replace both.