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 (44671,24441,44689,6782,18286,14402,18894,44762,44674,17703,18427,17771,13,24438,45043,17092,44640,44853,44865,17981,6609,45517,36472,44764,6862,30963,5410,17601,31354,44861,44870,44869,43800,39676,34194,10402,44868,45180,44849,45262,5993,44531,18794,17755,18279,22509,44835,45567,30135,18237,8753,44845,44775,44863,18650,17351,45051,45421,44855,18688,45042,17756,13988,17904,4686,18572,45177,45286,17848,44768)
Unknown column 'np.person' in 'where clause'