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 (44875,18688,45515,17351,44674,45561,44669,17092,5259,4765,37057,44671,17755,17703,17756,45517,18446,4686,44849,18172,44865,44739,18719,45518,24438,18652,45043,44866,6782,17278,45346,17335,44765,45180,17657,37267,18648,17904,18286,34194,18430,17527,44869,44837,18572,45277,19057,6609,18900,22509,19078,44853,44854,44861,13988,44848,17835,45286,13425,18301,44762,44745,18185,24411,18996,30963,17114,17009,28530,18042)
Unknown column 'np.person' in 'where clause'