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,44856,44845,45051,17335,24412,17848,5388,17835,44848,45180,9341,17756,44671,18981,18688,16885,18894,5259,44861,17092,44689,44884,44640,18353,45516,36472,45286,44855,45229,45177,45346,19057,18650,37057,44853,44858,44875,45277,18900,13922,3883,18237,13425,45561,6862,44767,45043,44674,17009,44894,4765,44745,17703,18572,44765,18172,18301,17904,18719,45567,18652,18996,44868,18430,8753,44863,30986,44685,44870)
Unknown column 'np.person' in 'where clause'