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 (30963,17092,45567,13,44873,18572,43800,45286,18648,45042,17492,44884,44775,44894,17771,30986,28530,30135,24438,44868,14622,4686,17237,5259,37057,9341,18427,5993,44861,18981,18794,44869,17848,17527,44640,44848,44685,24411,3,31354,32454,18172,44669,44674,18652,44739,3883,44671,5410,17335,44767,45518,45517,4765,17904,18286,39676,44845,44878,17703,44689,44867,18900,44768,19078,44765,18894,18353,17278,10402)
Unknown column 'np.person' in 'where clause'