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 (45051,45517,44837,18042,18279,4686,44853,45561,44674,17981,45072,4765,44762,44866,44856,18172,45262,18652,17492,44863,44894,17556,44765,44768,3883,18286,30986,5388,28313,18688,30963,17114,17839,44849,18430,18185,31354,44687,13988,44775,44764,13425,24412,39676,18572,44867,32454,17657,44836,44868,44671,37057,44848,17848,45515,10402,44845,45346,44851,6782,6609,45042,36472,17771,24411,43800,45229,17335,45286,44531)
Unknown column 'np.person' in 'where clause'