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 (17755,17657,4765,17278,44884,13922,45515,44739,17092,18446,17703,17492,24411,39676,18353,44766,45043,44878,44867,44640,17848,24441,8753,44875,14622,3,18900,18430,45262,44765,18572,18719,30986,44685,45518,45277,45421,13425,17756,44863,19057,18427,17981,45516,44853,18794,37267,14402,44873,45517,5410,18286,44868,45072,3883,16885,18185,44835,4686,18648,18172,6609,44855,44669,44849,18650,28530,17351,45229,13)
Unknown column 'np.person' in 'where clause'