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 (17755,44867,17556,45051,5388,34194,44869,18572,44848,17278,9341,44711,17839,45515,44766,5410,6875,13922,18237,24441,17601,18446,44685,44674,19078,44861,44854,18794,31354,18688,44894,43800,17092,45072,44884,44849,24438,5259,18172,32454,18042,45180,44858,18185,18981,17703,18353,45043,28313,44671,45567,44836,18894,44765,17351,13425,44856,18652,17835,28530,44762,44851,44866,13988,45516,39676,44875,44863,44878,45277)
Unknown column 'np.person' in 'where clause'