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 (45518,44866,18650,45567,44858,37267,10402,36472,18301,45277,17351,16935,18719,17657,44856,18279,4765,45229,44775,6875,44849,45561,17848,32454,44868,45180,45346,18042,44768,17755,18652,28530,45043,44845,45421,18286,13425,44762,24441,18572,6782,44711,44689,44861,44851,44674,17092,45515,3883,44835,17527,17556,18237,45262,17601,44869,34194,13922,18794,22509,17839,18996,44531,44867,44848,14402,44854,45177,24412,45072)
Unknown column 'np.person' in 'where clause'