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,24441,19078,17835,44531,13988,18688,17981,6862,17771,45561,18172,5993,28313,44853,8753,16885,44867,45567,18719,24438,18900,13922,44854,22509,44762,44870,17556,18301,45516,44687,44849,44766,44689,19057,44868,44764,6782,17755,44863,45180,44739,39676,17527,44640,14622,17237,6875,44674,17839,3,44768,44855,31354,45346,17114,17092,17335,18430,32454,45051,44894,45515,3883,45229,5259,18185,44866,44858,44873)
Unknown column 'np.person' in 'where clause'