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 (45177,28313,44855,45561,18652,44711,17755,45516,17351,17756,17981,44835,44837,45180,44849,6862,44767,18427,36472,3883,17771,18688,18353,44768,17601,18894,45262,17335,30963,44836,17703,44870,34194,17839,44875,18648,17556,45518,18286,39676,18042,19078,24441,44739,17904,5388,8753,16935,32454,44867,44868,44856,6782,22509,44863,6875,44873,31354,18185,17492,4765,30135,18172,18301,24411,44671,44866,17527,17092,18900)
Unknown column 'np.person' in 'where clause'