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 (44873,44711,44884,5993,17335,44674,44531,18172,5410,18446,17839,45180,44848,14402,44854,24412,17756,45043,18650,17556,44671,6782,17981,44851,5259,44764,44640,45561,44685,13988,6862,18353,44766,34194,44768,18648,45516,44745,44870,17904,17114,30963,18301,16935,45517,44687,17278,17351,17835,39676,44853,44837,18430,37267,18719,14622,17237,44866,44856,18572,37057,6609,32454,8753,44762,22509,45042,45346,18996,5388)
Unknown column 'np.person' in 'where clause'