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 (17703,5388,37057,19057,44863,18430,44669,6782,17527,44875,18446,44894,17237,18794,45277,45517,18185,24412,13,44837,17839,17278,44845,19078,44873,44851,44766,44870,17335,44855,17114,44865,44866,17756,45346,44861,45177,45561,17755,44739,18172,45072,6875,17351,24438,6609,17556,45286,18996,44848,10402,17009,14402,16885,30135,44836,17657,30963,44878,18650,45229,44764,17092,17601,18286,13922,17904,44762,37267,44640)
Unknown column 'np.person' in 'where clause'