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 (17657,44863,16885,18719,45346,18301,18353,30963,18427,44764,18981,14402,28530,44878,45516,17601,14622,18446,44894,6875,45286,17278,17835,44836,44767,36472,18900,44768,44775,44861,17237,44766,3883,17114,45262,17492,44689,17527,17839,44739,13988,44856,18172,44674,45229,45517,44851,37057,18430,45421,28313,17755,30986,44868,44845,18652,44866,45043,17556,13,44837,24411,19078,18042,24412,13922,17848,22509,39676,10402)
Unknown column 'np.person' in 'where clause'