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 (13988,44873,44853,45517,18652,44767,36472,37057,44875,17981,44685,13,44689,17756,45421,17009,24411,18427,44711,24412,24441,45072,18301,18172,18996,18185,18353,45561,45229,44848,13425,30986,16885,44836,37267,10402,39676,17556,6609,17904,44854,17335,44867,43800,17092,44861,44878,18430,17114,44868,3,44768,17839,8753,18648,17527,44849,34194,45567,19057,4686,45515,22509,19078,44837,17278,44775,44845,17492,5259)
Unknown column 'np.person' in 'where clause'