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 (44837,45262,44765,3883,10402,28530,44858,44775,13922,18237,17904,44853,18719,17114,17657,45051,43800,16885,30135,17848,17492,44865,44878,44767,44745,18427,13425,44669,18185,44875,22509,45515,17009,45229,17981,19078,5410,17335,6609,13,45517,44861,45286,44845,24412,44873,44849,18688,3,31354,14402,18572,32454,5259,17351,6875,37267,44835,44863,6862,44711,44867,44671,17556,44866,18794,44854,39676,17278,45177)
Unknown column 'np.person' in 'where clause'