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 (8753,30986,18648,44836,44853,18446,44640,18430,32454,43800,44674,18237,17756,44854,4686,45346,17904,17092,45515,18996,44873,18650,18719,45043,17771,17981,13,18286,10402,44870,13922,18572,14402,45286,37057,6875,18894,17839,9341,17848,18301,24411,44768,18652,17556,45042,44685,5388,16885,34194,17009,45421,6609,18688,18353,45229,5993,45567,44531,44867,30135,44711,44875,5410,17755,44861,18427,44866,37267,44858)
Unknown column 'np.person' in 'where clause'