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 (24411,44867,44873,44764,43800,45277,45051,5388,44762,45421,44848,39676,44878,44853,36472,17703,9341,13425,45516,45286,44711,18719,18353,8753,13,44868,19057,18794,18172,45229,18981,28313,45517,45567,17237,44845,44745,24412,45262,45346,17335,18301,18900,37057,44837,45518,18650,44861,6782,44767,45561,45515,44849,18996,17771,13988,44851,18652,18894,44884,17527,30963,44854,19078,30986,17755,44836,16935,18572,18185)
Unknown column 'np.person' in 'where clause'