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 (17556,6782,13425,44875,44858,44764,18237,45042,32454,17527,30963,45516,44863,44854,44870,44866,13,18286,44873,5259,17755,45051,44884,22509,44685,44851,44762,44845,17771,18430,44669,17839,5388,18894,5993,13922,45262,31354,18996,44674,18301,3883,45515,45180,44775,44531,17703,28313,14622,44849,45567,45517,44869,18650,30135,17981,18185,44640,24441,17114,18427,44867,6609,18794,18572,5410,18042,43800,44836,16935)
Unknown column 'np.person' in 'where clause'