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 (5388,18446,44745,45177,45518,34194,18237,44766,45072,44856,17835,18172,44878,44640,44858,3,45180,44531,5410,16935,18652,17237,44687,17092,24412,44863,44768,30986,17527,18688,44866,44689,17278,17556,18185,45517,22509,37057,45277,17771,44764,17755,18427,36472,18572,6609,13988,19057,4686,44851,31354,13425,45286,6782,44765,17009,44861,39676,8753,13,17756,16885,32454,30135,18981,17981,14622,44854,17492,44869)
Unknown column 'np.person' in 'where clause'