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 (5410,36472,6875,43800,45516,44768,18996,18430,3883,34194,44766,44671,18185,5259,17114,44866,37267,18719,18353,44767,24441,44878,31354,45177,10402,4686,45561,44875,44849,18648,44762,16885,44687,18688,18794,45567,44764,6609,44745,17657,37057,45517,18981,44689,44669,18446,45421,18279,44836,3,18237,17703,17351,17981,44711,44531,44865,44869,18286,44853,30963,44848,17848,30135,32454,24411,18427,14402,45051,44858)
Unknown column 'np.person' in 'where clause'