Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (17657,45277,18996,45286,44863,24411,18981,44858,44775,44671,44640,44764,5388,44884,45051,18894,44835,17092,5410,44768,18719,17755,4765,45229,44873,28530,18446,44531,45515,44854,44856,14402,14622,44861,3,13425,44762,44870,45518,44674,18042,44766,44875,18427,24412,16885,19057,18900,13988,45346,45561,22509,17237,5259,44866,45262,17839,44855,17556,45567,18185,44894,17351,30135,13922,17335,44848,44765,18279,6862)
Unknown column 'np.person' in 'where clause'