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 (44855,45567,24441,44866,44865,5259,37267,44851,17839,4765,28313,45516,6875,45177,6609,44856,17114,45515,44845,13988,44836,44873,45180,44868,17981,45262,3,44689,17848,28530,44685,17703,17755,44837,43800,18185,3883,44861,18894,45042,44765,17527,18279,44711,45072,17771,10402,5410,44762,18648,44884,17657,44687,14622,17492,17556,44849,18996,36472,31354,16935,44867,45043,18688,30963,45517,18237,45051,17237,18353)
Unknown column 'np.person' in 'where clause'