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 (18794,17556,44775,44853,44848,44711,44856,44875,4765,18042,9341,45229,6782,44861,18688,17601,18185,44837,45421,18981,45277,44687,44764,44868,44762,45262,18353,44835,17492,18894,13,44873,18430,44863,44765,44867,18237,18650,14402,17839,44884,45072,17351,17009,44689,44745,45346,19078,45043,44768,44866,17527,44870,18719,17771,5993,17835,18301,8753,45567,45561,18648,45518,44685,3883,13988,36472,30135,39676,18446)
Unknown column 'np.person' in 'where clause'