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 (44835,9341,44854,30963,44775,13988,44869,45043,18279,18719,18427,44764,44766,13,34194,44768,44848,45346,44711,18650,45517,4765,44836,17092,44849,17492,18430,45515,45277,17839,17703,17009,18172,44837,31354,44640,17904,44685,45042,22509,39676,37057,44745,44861,16935,30986,17556,18572,44767,10402,18286,24412,24441,18301,19057,17527,5410,44868,28530,24438,17335,18996,44851,24411,44739,44531,18981,8753,19078,6862)
Unknown column 'np.person' in 'where clause'