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 (16935,44868,45518,17114,37057,8753,17278,24441,45177,44848,44711,17703,45072,36472,45262,45517,45051,44855,44861,44768,45043,17009,18572,32454,17527,30963,18719,45516,17848,13425,28313,44745,44849,37267,34194,44866,44851,5993,6862,17351,44640,44766,45515,44762,18353,44869,13922,44854,18894,17092,44775,44764,17755,44689,19057,44865,17492,45561,13988,44884,18172,28530,44739,44873,44856,18430,17335,18185,45286,13)
Unknown column 'np.person' in 'where clause'