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 (18185,18794,19057,6875,17771,44745,4765,45561,16885,17335,44685,45277,5993,18650,17351,44671,24438,17981,44856,19078,17756,44867,18427,34194,45043,13922,44836,6782,18894,18353,44711,44878,17703,5259,45516,18237,4686,44873,44845,44861,17527,44531,13425,18042,44848,31354,44766,37057,45518,44689,45229,18688,45346,17009,18279,6609,44870,9341,44865,44764,28313,44767,3,44849,17278,28530,13988,45042,44863,18981)
Unknown column 'np.person' in 'where clause'