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 (14402,8753,17904,44836,45043,17835,44869,44849,4686,6862,45346,44861,18237,17601,3,44894,30963,19078,16885,44853,24411,13425,18572,18430,18996,5993,17771,17657,45517,19057,44854,44762,36472,44674,44884,17092,45277,18172,18286,13922,44764,44868,44866,18301,17237,18688,44845,9341,17351,43800,44671,22509,44768,45072,44745,18446,5388,44867,44870,17527,44640,17756,45561,44875,3883,18652,45042,45051,44851,31354)
Unknown column 'np.person' in 'where clause'