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 (5259,44878,45346,17009,44739,5410,44856,44711,44640,44870,44689,44851,4765,44766,18688,44849,45042,28530,17771,45277,36472,17703,44866,18301,18042,44765,17981,18794,30963,17556,44854,43800,17114,30135,44836,45180,16935,44531,44775,17835,13988,17237,18279,18900,44869,13922,37057,18446,4686,6609,13,44768,18427,44845,44762,45177,18650,5993,44884,18430,31354,22509,44674,18353,44669,18237,30986,44855,18648,24411)
Unknown column 'np.person' in 'where clause'