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 (39676,18719,44775,18286,18996,32454,18042,44849,19078,16935,44640,44685,45561,45421,18430,44848,17601,44711,44836,44875,6875,24412,44739,44766,18652,44764,8753,31354,3,17114,17009,34194,18894,17278,45043,45346,17335,17755,44868,44858,44861,14402,16885,44845,45180,24438,44884,13425,18650,17848,44835,44767,37267,6862,5259,44531,6609,30986,17981,9341,44873,18900,44870,10402,17771,5993,44745,22509,17237,43800)
Unknown column 'np.person' in 'where clause'