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 (6862,44870,37267,18172,44849,44671,45518,44765,17835,44689,18688,18900,18446,17492,17601,17237,44858,30986,18185,44745,44866,14402,17335,45051,18572,45043,17981,17848,44837,18286,24411,14622,45180,9341,17527,10402,18794,17556,17703,44863,45561,44868,16935,24412,44869,5259,18353,44711,18648,44739,45042,45072,44853,13922,18996,44855,44884,19078,24438,6782,44531,30135,17009,45567,17114,44768,18279,45177,17771,39676)
Unknown column 'np.person' in 'where clause'