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 (17237,5993,44863,17981,44861,17527,5388,17703,44853,17839,44765,44855,45515,44669,19078,44856,17601,44687,44767,17835,18430,17114,18172,18648,17848,44671,44884,30986,18794,34194,44835,24412,18427,18301,44869,45286,45262,18353,44739,13,45180,17904,17756,32454,16935,37057,28313,44875,9341,28530,44762,17351,5259,44849,3883,44689,44775,44854,44764,13988,18688,22509,44873,44685,44894,44866,44711,4765,36472,8753)
Unknown column 'np.person' in 'where clause'