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 (17835,16935,17771,18237,17703,18446,18794,17492,45567,13988,39676,44894,17755,44767,44863,18650,18279,45277,14402,45262,43800,18894,44765,22509,31354,24412,44851,9341,6782,18719,18688,44867,4686,44884,5259,44866,45051,44865,18652,44869,44762,45518,18900,37057,44689,17527,44873,44685,44739,18185,17335,44868,6875,30963,18572,44836,44837,17601,3,44835,44640,18172,45517,44845,3883,30986,10402,45043,18981,5410)
Unknown column 'np.person' in 'where clause'