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 (45516,18688,44861,4686,44767,18996,44853,45515,44689,43800,5993,44875,24412,44671,5259,17657,30135,18981,17848,45262,45286,44865,45561,17278,45346,45229,44854,34194,6875,17351,44768,17756,28530,37057,45180,13988,44856,18894,18185,45043,5388,44845,44669,44866,44640,44858,44766,44674,17703,18430,44867,44884,18172,44687,45517,18427,44873,31354,30963,18900,45518,17601,44851,37267,44775,17839,10402,44745,18719,18572)
Unknown column 'np.person' in 'where clause'