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 (45277,44867,44894,45515,30986,30963,3883,44878,16885,18427,24412,37267,45518,44671,18650,44768,17835,45229,5410,18042,44851,44745,5388,44869,14402,44836,17556,17009,17335,44866,18172,18981,18572,32454,17771,39676,18900,5259,3,44685,17114,17755,36472,5993,44531,18794,9341,30135,44849,18286,45043,18301,17657,44853,44835,44865,17904,6875,13922,18996,18279,44837,17092,44868,17756,18446,17601,18430,44687,18652)
Unknown column 'np.person' in 'where clause'