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 (28530,8753,17904,44687,44671,44531,45072,44848,44640,44835,45518,5259,34194,18042,17092,44865,44878,17492,18894,44861,18996,44856,24412,6862,17278,17114,18981,18301,30963,44745,18719,17848,44870,45051,13922,10402,28313,44868,14622,45277,45346,6609,44853,18650,17351,45229,17556,45421,5410,5993,44854,18900,14402,3,45517,19078,13425,44873,16885,37267,45043,44739,17771,36472,30135,18688,9341,18652,18353,44674)
Unknown column 'np.person' in 'where clause'