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 (18286,44858,44745,44848,43800,17848,18353,4686,44849,16935,4765,17114,17237,6862,44865,5388,44765,44861,44739,17835,45277,28313,44689,18042,13922,28530,17771,44674,18446,13988,18427,32454,18900,17092,18894,44762,44873,17755,44531,45515,45421,44870,5259,44869,5993,44640,31354,37267,44685,18981,44866,24411,17335,16885,44868,44767,44669,44851,44854,17351,44711,18719,44884,34194,18237,18185,18301,6782,18648,8753)
Unknown column 'np.person' in 'where clause'