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 (45346,45567,44640,13,45229,18185,17904,13922,14622,18301,44853,17755,44674,45051,45180,45277,44689,45561,10402,44671,17839,6875,44835,45517,44685,18900,18572,44745,3883,44861,44851,18172,45515,28530,44875,18042,44867,17335,17657,17756,18427,44884,6782,17556,45518,18981,17981,44764,45177,44739,14402,17601,5259,17703,18996,24412,17114,18688,44870,32454,34194,17351,44869,44775,44849,18894,18652,44767,44845,44855)
Unknown column 'np.person' in 'where clause'