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 (18185,10402,44858,44848,43800,17237,8753,44849,44674,44711,4686,45262,6862,28530,44865,44878,44745,44768,24412,18996,14402,5259,44767,45042,5388,3883,18172,18279,18719,18446,44869,3,24441,17835,45346,17351,13922,31354,44853,17755,17492,16935,44884,9341,34194,45277,45286,44875,45515,45567,44685,16885,18652,13988,44868,5410,18900,44765,32454,18301,18572,44856,24411,17703,44687,45518,44640,17009,17981,30986)
Unknown column 'np.person' in 'where clause'