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 (45262,45518,45346,45180,44875,28530,17092,44849,6782,18688,45072,36472,31354,44669,18446,5993,44775,44640,44868,18237,44894,44855,17657,18279,8753,44531,37057,44861,17755,17527,17492,17601,18981,18719,13988,44858,18301,44836,18172,5410,44866,45286,45515,45042,44873,17009,4686,16885,44765,17237,43800,44768,19057,17981,16935,44867,44848,44762,44869,45421,44767,39676,17771,44870,44845,17114,44878,44863,17756,17848)
Unknown column 'np.person' in 'where clause'