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 (44836,45043,45286,18688,14402,44870,17756,32454,17601,44861,9341,18794,44854,6782,17981,18427,17335,10402,44739,17904,44865,18279,45517,28313,18172,4686,44768,24438,5993,24441,18650,28530,44866,45561,44851,18430,24411,18286,13,13922,4765,18996,44531,17278,17492,44687,43800,44775,45277,44766,6609,45262,44767,44669,5410,45346,17848,18185,19078,30963,17771,18572,45518,30986,44745,17009,44765,44869,14622,3)
Unknown column 'np.person' in 'where clause'