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 (17981,17556,44674,44863,16885,45567,44854,44766,28313,17335,44764,18688,45229,44687,44767,19057,45561,17657,44875,3,18446,18301,45286,44869,44768,45072,36472,10402,45262,6782,44762,18237,44671,44835,18430,31354,44669,45043,30963,17492,37267,17527,44873,13425,39676,45516,44884,18719,44878,17904,44849,45518,17848,4765,17278,45517,45180,45051,44531,17835,6609,34194,44870,18042,44685,44858,5259,18572,17755,28530)
Unknown column 'np.person' in 'where clause'