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 (45561,18237,44868,17009,17278,17492,44878,10402,14402,45051,18981,18279,36472,19057,18572,24411,44835,13922,45177,45072,9341,44845,5993,44837,44640,44856,17114,45042,44768,44866,18430,44894,44836,44861,24441,28313,44766,44865,45346,44853,44711,17556,17904,8753,24438,18353,18648,31354,17527,44849,19078,44870,14622,44739,45518,18652,45567,44863,6862,45516,18688,32454,18794,18900,44671,17981,17839,44685,45180,18185)
Unknown column 'np.person' in 'where clause'