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 (18286,44835,44870,44711,30986,22509,17351,17848,17703,44849,44739,17756,44671,44640,43800,17278,39676,24441,45051,16885,44674,45072,44837,18900,5993,17335,32454,44851,18688,13922,37057,45561,45262,13,13425,44869,5410,44764,44762,45277,17904,45516,18794,45229,44689,24412,44865,44868,30135,10402,44878,17556,44853,18279,6862,24411,45042,18172,17092,44854,44856,44866,18430,17492,18301,45180,6782,44669,18648,36472)
Unknown column 'np.person' in 'where clause'