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 (18572,44865,18900,44875,24412,18172,17009,44854,19078,17237,44858,17904,18650,24411,9341,45515,18427,44767,5388,18794,18237,18981,16885,32454,18279,24441,17839,24438,44765,44873,44884,17771,17848,44845,45286,44868,44866,39676,6609,45042,6862,18353,44837,44674,17657,44849,44671,8753,31354,17092,45561,44764,45043,45516,6782,18894,3,36472,44689,44855,44848,17114,45262,17278,37057,45346,44869,13988,18286,45180)
Unknown column 'np.person' in 'where clause'