Unknown column 'script' in 'where clause'