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 (45177,18981,44767,44848,24438,28530,17981,30986,44854,44835,45567,44845,44640,45042,36472,18719,6862,44875,17755,45517,44531,44869,18286,44836,13425,45561,6609,44711,17703,44858,44867,44766,37267,18427,18572,30135,3883,18042,45515,17771,3,18185,44671,16885,45516,18688,45043,44861,32454,44851,18900,44856,5388,17848,44765,45286,43800,44884,18996,19057,44837,17335,5259,17839,18894,17835,44762,44775,17278,17092)
Unknown column 'np.person' in 'where clause'