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 (44767,5993,9341,18430,17492,18446,6862,17835,44861,44762,13,22509,39676,17703,18648,5259,28313,44868,37267,30963,18237,31354,45051,16885,17556,44856,44836,44875,44674,44853,18652,45561,18719,44671,44848,17335,17278,17771,45518,45517,32454,45515,19078,17092,18427,44854,18279,16935,8753,17527,44640,3883,44884,18688,44711,17904,18894,44745,45262,13425,45043,44863,10402,14402,44894,44866,44764,17756,45567,17981)
Unknown column 'np.person' in 'where clause'