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 (18981,45177,44739,36472,24441,45262,44861,45567,18794,44848,18996,18430,13425,17114,19078,18427,3,17835,5388,44875,18650,17492,45072,37267,18286,5410,17839,18688,24412,45517,44766,32454,28313,44765,17556,17657,17756,45515,17703,13922,44894,45277,44674,18301,3883,17351,44873,44851,44764,45286,44853,17527,6609,44835,17237,18446,17771,18894,4765,17335,30135,44767,18652,17092,44775,45229,44858,24438,8753,18237)
Unknown column 'np.person' in 'where clause'