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 (22509,13922,18279,24438,44835,17771,17981,44674,44858,17556,17237,18430,45567,43800,34194,18286,19078,37057,18652,45421,44869,44745,9341,44711,13988,14622,18446,45346,24441,6782,24412,39676,17703,28313,18427,17335,44640,18794,10402,17527,45072,45286,44685,16935,17657,17492,44854,3883,18996,44894,18650,44875,18719,44873,18301,18185,30986,44764,28530,32454,44856,18688,17848,18894,44870,13425,44837,18900,44687,45229)
Unknown column 'np.person' in 'where clause'