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 (45421,24411,45051,6609,4765,44739,17771,45177,45561,24441,44851,44836,44884,44765,18430,36472,34194,19057,44671,3883,44858,3,45516,18042,17755,44768,13425,14622,45567,44767,18237,44764,18981,45229,44868,17904,6782,44775,44865,37057,6875,17527,18648,24412,18301,17335,19078,24438,18427,44870,13922,18172,44835,45043,9341,22509,17657,30986,17981,28313,13988,45072,44848,10402,18286,44855,18688,18279,44856,44837)
Unknown column 'np.person' in 'where clause'