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 (34194,18237,10402,45346,45042,45515,18301,44674,44835,17835,14402,19078,17237,44671,44531,17771,45262,45072,24411,44878,45286,16885,24441,17657,30986,18900,18996,17556,44849,45177,45229,18042,18650,28530,44884,9341,45567,43800,44873,18572,44869,17009,6875,18688,32454,6782,17092,44764,17904,36472,3883,44851,44765,17601,17755,17848,18794,13425,44685,18286,44861,18185,44856,44866,44669,18446,44762,4686,31354,16935)
Unknown column 'np.person' in 'where clause'