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 (44849,44711,6875,45286,18648,30135,14622,44836,31354,13,13425,44739,18237,45517,17601,45051,37267,45567,44837,36472,45561,24438,17756,30986,17755,45042,44873,44868,32454,18427,17556,4686,37057,44856,17092,18650,18301,18042,44875,44745,44854,18981,18900,24411,17351,18894,9341,44767,45043,44855,44870,44867,44853,44765,44775,45516,17703,44865,44766,45277,17335,18279,3883,44689,5410,17114,44894,5993,44674,44669)
Unknown column 'np.person' in 'where clause'