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 (30963,4765,44866,18427,45346,18185,18172,44861,13988,19078,44865,4686,6862,44685,34194,44894,44640,44867,18446,18279,45421,8753,43800,44870,44837,44739,44863,17703,45051,44775,44858,18719,45561,44671,18353,44674,14622,45072,17981,5259,45042,17237,19057,44711,17755,45567,44851,18572,44669,24438,18996,44848,44849,5410,37057,45177,18430,45277,44745,17556,13425,32454,44768,28530,17771,44855,9341,18650,45043,39676)
Unknown column 'np.person' in 'where clause'