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 (4686,17981,18652,44835,44687,37057,44685,17839,45072,28530,44765,6782,44836,44848,44531,45567,44861,32454,6875,18286,30963,18900,18648,44875,24411,24412,44764,6862,18996,17527,18427,17237,44894,5993,44849,45180,17335,13425,13922,44856,44762,43800,44855,18172,14622,19078,17601,5410,44873,45229,44870,44867,45517,17848,18237,30986,44671,18894,44863,30135,45262,45043,45561,17114,16935,16885,44865,18185,39676,14402)
Unknown column 'np.person' in 'where clause'