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 (44854,44669,13922,44851,44894,17114,44845,17771,18042,44856,44674,18981,45346,34194,45421,14622,6609,44875,18301,44768,19057,17756,17009,13,10402,44687,43800,44849,18446,45229,14402,17981,37267,24441,44870,44869,17556,44711,44835,44836,17092,45042,17492,6862,32454,44762,6782,18894,30963,45177,45515,18279,18237,18648,45072,45262,44685,5410,44531,5259,17755,44873,44866,18430,30135,44671,45516,24412,45517,18572)
Unknown column 'np.person' in 'where clause'