MySQL Error: Unknown column 'interno' in 'where clause'