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 (44873,45515,44853,45277,45051,44689,44855,17492,44640,44849,17556,18042,17092,17756,44687,30986,6782,13922,17904,18688,45177,18446,44884,44869,44745,44865,17009,44863,10402,4686,45517,45421,44669,44766,44765,44868,19078,18427,18894,18185,44837,44775,44861,6609,44836,18648,44870,16935,45072,17237,17601,6875,18572,44764,36472,44685,5388,4765,44867,13988,44674,5259,44739,39676,17335,30135,45346,18172,17351,28530)
Unknown column 'np.person' in 'where clause'