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 (17092,24412,44640,45229,44894,18279,5259,32454,44845,16885,44674,45421,44669,5410,44875,18286,4686,44878,44766,17351,44687,18042,44851,17601,44849,24441,6875,45177,30963,17114,30135,39676,6862,45516,44853,16935,44856,45346,18719,44870,44775,43800,13988,45277,18688,4765,18172,44858,18353,17335,44768,44837,19057,5388,9341,34194,44685,44764,44689,44848,44762,45518,44873,17527,44861,44884,44767,45262,18301,37057)
Unknown column 'np.person' in 'where clause'