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 (17839,17556,17114,44685,44865,17278,22509,44640,45277,16935,18652,44836,18172,44531,44762,18650,10402,17335,17981,44845,17601,17771,39676,32454,44835,45262,45229,13,44766,17237,5259,45051,44858,14402,17527,18286,44869,6875,4686,44848,18794,19057,44765,17755,45042,17848,6862,44689,6609,44853,45072,44739,18446,18185,17703,44768,44875,34194,24441,5388,44878,16885,44894,44775,17835,44873,5410,45177,44866,45516)
Unknown column 'np.person' in 'where clause'