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 (45262,5993,44765,18572,14402,45515,3883,4686,8753,45177,45286,44878,45561,19057,13922,44865,18719,44835,32454,28530,44854,44861,44689,17092,44875,18237,44845,44764,6862,44775,18648,44856,17755,44837,3,19078,17703,17009,18185,37057,44762,44863,44873,18446,5388,45042,17556,37267,18900,17756,10402,17771,18427,43800,44867,18996,45421,44768,44836,18353,22509,44711,45346,44687,28313,17981,31354,44685,9341,6609)
Unknown column 'np.person' in 'where clause'