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 (17771,44669,5410,44687,44866,18900,44853,44849,18648,6609,17556,44685,18185,44768,18301,19057,44689,37057,18652,17848,17703,16935,44861,45421,18430,34194,17492,30135,18172,18688,14622,44711,18981,4686,18237,44765,6782,24438,44848,45561,45180,18650,44764,45516,45262,30986,13,28313,44869,17237,10402,17351,44739,44766,17839,18353,44762,43800,5388,45518,45072,3883,44835,39676,45346,44775,45042,17114,44854,24441)
Unknown column 'np.person' in 'where clause'