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 (30135,32454,13,44739,44685,43800,44674,19057,17755,45567,44870,13988,4765,3,45051,18648,3883,6609,24411,44875,37057,45262,44836,37267,17237,18430,36472,24412,45277,44767,45515,44861,44837,17703,45517,31354,44711,17556,45518,17009,6782,17527,18237,18279,44849,17848,44762,39676,18996,8753,18688,17114,44531,19078,44873,44845,44867,5388,18794,45177,24438,44848,44640,18042,17981,18301,5410,17657,18427,17839)
Unknown column 'np.person' in 'where clause'