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 (18427,44849,24441,44640,45517,39676,18996,18719,28530,5388,13,17278,17237,45286,44854,18042,45051,30963,44764,44745,45043,37267,44775,44765,44531,45421,44867,18894,18301,36472,6609,44855,45042,5259,17981,18237,18446,4765,44768,45516,18430,44858,6862,6782,44878,45515,14402,17527,10402,45229,44863,3883,17771,17335,13988,6875,17601,22509,37057,44835,44836,44868,44865,18286,44766,24438,30135,3,44856,44851)
Unknown column 'np.person' in 'where clause'