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,45346,44669,18996,30963,44745,3,24438,19078,13425,18185,19057,45421,32454,44768,4686,45517,17092,17703,45286,44878,44853,14402,44765,6862,13,18427,17981,44775,18353,44858,18572,24411,44856,30135,17755,16885,17237,18981,45567,44875,17527,17114,44866,17009,17904,18301,43800,17601,18446,44845,6609,44865,45516,44739,22509,44873,44855,18794,5388,44640,44870,44863,45518,44711,17839,17835,37267,45561,18650)
Unknown column 'np.person' in 'where clause'