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 (43800,44640,44775,24441,30135,5410,13988,4686,17351,17703,18996,18688,44764,44669,18900,18981,3,24411,44689,44711,44837,45421,44865,45515,17556,13,18353,37057,45277,24412,45346,18286,45518,45042,14622,18572,44855,28530,24438,44867,45051,44875,14402,44836,18794,44858,8753,45180,13425,22509,17237,44870,17981,17848,17835,45567,5388,18430,44848,17009,44873,18650,44671,44767,17904,18894,17278,18042,39676,44766)
Unknown column 'np.person' in 'where clause'