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 (17527,32454,18648,45051,45561,37057,17556,44865,18042,39676,18172,6875,17351,45277,17092,13,45229,4686,34194,44687,17114,44531,18237,24441,45346,17835,18427,44765,17839,44766,17771,9341,44870,44866,17904,17278,44854,5259,30135,36472,44640,44848,44849,17756,5993,44853,45180,18719,44868,28313,44674,18794,6782,44873,4765,17335,44855,13922,19078,24438,17601,18286,13425,31354,3,18353,17237,17657,6862,44711)
Unknown column 'np.person' in 'where clause'