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 (17351,17981,44868,18794,44865,4686,44878,17278,30963,16935,18894,31354,44767,44851,34194,44861,44762,17839,3883,44745,17848,5410,44867,6875,17657,44854,17904,17835,44884,18650,5388,6782,44835,45286,45177,44775,36472,28530,30986,39676,45567,18172,18446,8753,18648,18652,6862,44765,44853,18279,44849,44764,45043,14622,18286,17556,18237,24411,9341,44687,13988,18042,44766,45518,24412,44836,44856,17237,44837,10402)
Unknown column 'np.person' in 'where clause'