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 (18996,44875,18688,13,45277,44835,24441,17556,44855,44866,44865,44873,14402,28530,17839,13425,17237,17755,45180,17981,45286,18237,18185,45515,18794,17351,44856,17848,45516,17278,45561,44687,44837,24411,44768,45051,37267,44764,31354,17904,18981,9341,44836,18286,18042,18894,17703,18279,45346,10402,30135,19078,30963,18719,44739,14622,18172,44867,5993,17114,18353,44878,5259,18650,4686,45177,45042,44884,18301,5410)
Unknown column 'np.person' in 'where clause'