Unknown column 'r' in 'where clause'
select classid from ***_ecms_down where id = r