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 (44861,18353,44878,28313,17601,14402,44768,45518,44687,34194,17981,4686,44865,44674,44767,18185,17839,44766,44836,4765,44671,44640,24438,18172,30963,13988,36472,6782,39676,17237,19057,44875,18237,45042,5993,44854,45277,9341,18648,17755,32454,17278,44849,17092,3883,45229,6875,44711,18430,18286,18446,45286,5259,44870,17848,17904,30135,44689,13,44853,18301,44863,17556,6862,19078,45043,44884,45516,44745,17351)
Unknown column 'np.person' in 'where clause'