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 (16935,44851,3883,44765,18301,45277,13,32454,44836,10402,44766,4765,45051,3,44867,17839,45515,17351,17756,44739,18286,43800,44865,17771,18719,44685,18894,28313,22509,18430,14622,31354,8753,9341,30963,18652,44848,24441,44873,17237,18572,17492,44640,18688,5388,44869,17335,44837,44884,44868,45567,45229,6875,17904,45517,44764,44866,6782,13425,19057,44863,18237,18427,17981,45072,30986,5993,17835,44845,45262)
Unknown column 'np.person' in 'where clause'