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 (45277,17755,18688,18446,45051,44866,13922,6862,44687,44640,44865,45177,36472,44739,45561,44851,18894,14622,44767,13425,18301,45516,18652,18427,28313,17009,17556,18353,17601,18981,44869,17335,44868,43800,45262,44837,44671,44669,24438,39676,44867,44875,31354,44870,17756,3883,10402,24412,44855,17904,19057,44848,17237,18237,17092,8753,45229,44853,44775,14402,18286,13988,45518,44768,45180,44873,5993,18430,44745,17848)
Unknown column 'np.person' in 'where clause'