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 (13425,24441,45286,34194,39676,44869,17601,28530,18301,44689,18652,18688,17492,44870,37057,44836,44687,13922,17351,44894,18172,45042,5259,36472,17335,44768,24438,44762,18185,44875,43800,6782,4765,45515,18427,45516,44739,5388,45346,24412,45567,17904,3883,44868,44835,17527,44775,44685,44849,18446,8753,17556,30963,17703,6875,44855,4686,45229,45518,44854,17771,18894,6609,45180,45517,44863,45277,44851,32454,10402)
Unknown column 'np.person' in 'where clause'