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 (44739,30986,8753,13988,14622,18900,44835,18648,17335,45346,44767,16885,5388,3883,22509,18427,44851,45286,17981,45051,43800,18981,14402,44866,17839,18185,44768,44775,45180,18172,24411,45072,44845,19057,5993,45561,44640,44867,44689,36472,6609,44853,45262,44837,17237,44861,17114,17351,44766,18353,17009,4686,45042,44855,16935,44764,18572,44762,44711,44875,44685,17848,5259,44671,45518,18652,13922,17556,45277,44836)
Unknown column 'np.person' in 'where clause'