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 (18894,44767,18446,17556,10402,43800,17351,44835,44849,24411,44739,44837,3,44711,44873,24441,44848,45567,17601,30135,45421,18185,37267,6782,18572,5993,44764,13,44861,14402,3883,44868,18900,18172,18237,31354,44865,44745,44775,45517,44855,30986,18430,17335,4765,44766,13922,17278,24412,34194,18301,44674,18719,18981,37057,18688,18286,44685,18042,45277,45229,44768,18996,44884,5388,44689,44851,18427,45516,18279)
Unknown column 'np.person' in 'where clause'