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 (18688,24441,17351,44861,30963,5388,31354,18794,44867,17756,44768,17904,28530,34194,5259,45043,44640,44856,19057,44669,45518,18286,44671,17835,17755,17703,45229,44687,18572,44775,17657,8753,44766,17237,45421,44875,6782,36472,17839,32454,18900,30135,17771,18301,44835,45561,9341,44851,24412,44868,24438,16935,45042,44855,44863,44870,17335,17278,45051,44849,4765,10402,44836,44674,22509,17527,13425,39676,44531,13988)
Unknown column 'np.person' in 'where clause'