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 (4765,44711,44685,45177,44669,45516,18185,17756,44856,18172,45561,18446,3883,16935,17703,31354,44854,44745,14622,17601,6782,44870,44873,24441,44875,4686,44849,45567,18427,45277,44865,44858,13,44848,17492,30135,17835,10402,45346,18301,22509,43800,44868,44775,17009,37057,17237,44671,45042,32454,44689,44878,17981,17351,18688,45286,44739,45517,17278,45515,17755,18353,18981,5259,18279,44836,30986,45072,44863,44867)
Unknown column 'np.person' in 'where clause'