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 (45517,13988,18794,17278,17237,45286,30135,17009,44739,17601,18427,17981,24441,18446,45051,44870,17092,44873,44869,39676,10402,44875,44671,37057,44765,44745,22509,44689,45561,37267,45180,18688,44848,44894,45421,44836,36472,44835,44531,44669,44856,44845,17755,44884,45072,6782,44764,45516,18894,13922,45567,18996,16885,44855,45518,44867,18652,44854,18648,44687,5259,17904,17335,43800,17556,17351,45043,17527,18279,44866)
Unknown column 'np.person' in 'where clause'