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 (17237,45561,6609,44849,44854,44863,19057,34194,28530,44835,17755,43800,44531,14622,18237,17848,17771,45517,45051,45421,44867,39676,6875,18279,18353,17556,44674,24412,18430,44765,17904,37267,44869,18996,44766,18301,30963,44861,18648,44764,37057,44873,18900,24441,45567,44875,44878,44687,3,45277,17601,22509,17009,17703,45042,44711,17527,24438,31354,6782,44858,44851,18719,44768,44865,45346,13988,18652,18688,44836)
Unknown column 'np.person' in 'where clause'