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 (24441,24438,45421,44762,10402,44689,44856,31354,44849,44711,44674,3,44873,3883,16935,44767,17848,5259,45561,18301,45262,14402,45042,17703,13988,13922,17904,44837,8753,44894,17237,45229,5410,37057,37267,34194,13,44765,44764,44866,44845,44669,44861,4765,14622,44745,18719,6862,18185,18688,44836,17835,44858,30135,18572,18900,17009,17114,44685,44854,44848,17755,17351,24412,45518,18648,17278,44865,44868,44671)
Unknown column 'np.person' in 'where clause'