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 (44870,18648,24412,18430,44878,17351,18185,16935,5410,44762,45042,28530,4686,18719,17556,37267,18353,45518,45421,45177,44836,44711,18279,45072,45180,18237,45517,17657,17904,13988,44894,9341,18794,44764,14402,17335,19078,44669,45561,45262,3,18688,45346,44739,44851,36472,44689,13,18652,44640,18900,17237,18042,44855,30135,17848,31354,45516,44858,39676,18446,17835,44835,37057,19057,14622,18286,44848,17527,17703)
Unknown column 'np.person' in 'where clause'