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 (18719,17657,45262,17114,18648,44687,44858,3,44764,17839,44669,24441,18894,44868,44845,45421,17981,44854,19057,44711,44851,44863,13922,8753,19078,13988,28313,37267,30135,6862,18446,45229,44856,44685,32454,18185,17771,44867,34194,45072,36472,44775,44674,45567,45518,44640,44765,44531,5993,39676,17237,14622,22509,18652,44671,5259,17848,17009,44894,6782,44870,6609,18427,17527,18172,18650,45286,17492,44768,44766)
Unknown column 'np.person' in 'where clause'