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 (45262,24412,24411,44865,44687,44685,18794,45517,24438,18237,44858,31354,13922,17351,17009,18900,44739,3,44766,45229,44767,18996,44768,44867,18430,44849,45177,14622,44845,19078,44868,44866,45346,18719,44851,44855,17601,18446,44835,45072,18279,17335,30135,10402,44894,18688,44674,17278,5259,6609,45567,44863,28530,37057,17527,6782,17556,17092,44765,13,45051,44671,4765,37267,34194,17904,5388,45561,18185,44745)
Unknown column 'np.person' in 'where clause'