Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id 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'