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,17492,18353,18652,18430,44848,30135,44884,13,44875,19057,28530,18572,44853,9341,24411,18279,17771,45072,17527,17335,44865,17756,44766,3,45516,17657,3883,44851,44856,44762,44868,16935,45346,44764,32454,5410,44836,45421,17009,44768,17351,31354,45177,13922,44863,30963,45043,17835,44858,22509,45229,37057,44845,18446,44855,18185,44867,45567,45042,18042,17904,13425,44861,30986,44669,18794,17848,44894,18688)
Unknown column 'np.person' in 'where clause'