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 (45042,45517,45043,44689,17114,18353,17351,18719,5410,17237,6862,17556,13988,17492,22509,18794,28530,24411,44765,45229,45421,4765,17771,9341,44878,18894,34194,13,19078,44861,44884,18301,44766,18648,18430,44863,18279,18688,17601,17703,45346,24412,19057,45567,44836,18446,45072,44894,44768,44671,44870,44851,45180,18900,45177,14622,45286,18981,32454,16885,45051,4686,28313,44867,44869,18650,45516,44674,17835,37267)
Unknown column 'np.person' in 'where clause'