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 (44865,45277,45229,17237,3883,17335,44863,44894,30986,17981,44674,18719,17009,18446,16935,44861,18894,17848,19057,18042,18185,6862,34194,17657,6875,16885,18237,44845,17835,4686,44878,17527,37267,44711,45518,44848,44875,44866,17756,18650,45346,18648,18430,18172,44687,4765,28313,45180,37057,5259,44854,6782,13988,30135,39676,44853,5993,44739,45517,18353,13,24438,18279,18286,44764,17755,5410,17904,24412,45561)
Unknown column 'np.person' in 'where clause'