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 (17237,30963,17755,45042,18237,17492,44873,32454,36472,44869,37267,17904,44768,5259,43800,17114,44849,13,17351,17009,17771,44762,44855,45180,14402,45561,44767,28530,18427,44845,44837,44853,44884,14622,45177,45072,44745,44851,37057,45516,44765,44867,18894,17527,44687,18650,18981,45346,17335,44775,18996,13425,13922,18301,45051,44854,5410,45262,24438,10402,3883,44739,9341,44875,18719,24412,24411,18572,44689,24441)
Unknown column 'np.person' in 'where clause'