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 (45051,44866,30986,13988,45277,17981,5388,18427,45180,28530,44689,44775,13,14622,44867,5993,18286,44853,6875,44836,45262,44762,18353,44873,44765,16935,45229,18688,34194,44531,17009,16885,45346,17335,17237,18900,45177,30963,18172,9341,24441,44835,17556,10402,44768,44856,45421,44669,44861,44711,4765,18894,44640,17601,18430,18794,17771,44671,5259,45043,45518,44868,24438,45072,44894,18446,44674,17848,44884,18996)
Unknown column 'np.person' in 'where clause'