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 (44849,30986,44884,44836,3,18981,44851,44848,44868,17556,14402,45518,22509,39676,44775,24411,18042,17335,17657,44765,44866,6782,37057,18719,44711,16935,13988,16885,45286,44745,45262,28530,19078,44875,17009,44767,44863,17114,44858,17527,18430,44845,45516,5410,44835,18652,44865,9341,44867,45277,17848,13,45517,37267,34194,19057,18353,44689,31354,18900,44687,44869,45051,44768,17492,44878,3883,45567,30963,14622)
Unknown column 'np.person' in 'where clause'