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 (18688,10402,16885,44867,18430,5993,44640,44854,45042,19057,34194,44836,44687,18719,17657,13,31354,44873,44685,18427,32454,45567,17335,44863,44878,18279,30135,44711,39676,45262,6609,18996,44739,18650,44669,45229,17237,17981,45180,22509,45515,18652,13922,44849,44870,44848,6782,44868,24412,18286,44855,8753,44775,45517,17556,18172,5410,18301,45277,17756,45072,44768,18894,45561,44858,5388,17092,4686,6862,45051)
Unknown column 'np.person' in 'where clause'