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 (44835,17601,17237,18237,18719,36472,17492,18648,18042,44711,44873,17703,44894,18900,45262,17981,44764,45043,45518,18446,18894,18172,17114,17835,44837,44849,43800,17092,32454,18427,44531,44640,18353,13922,39676,9341,45051,45346,22509,31354,17755,17839,44868,24412,44768,24411,17335,44836,44851,17009,4765,44856,44685,45177,44870,18286,44765,44884,45072,44775,44739,44861,44671,14622,45561,44878,6609,4686,18185,18688)
Unknown column 'np.person' in 'where clause'