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 (17237,44689,17835,45567,44875,39676,19057,18894,44775,45421,44766,5259,44869,45346,4765,18446,30986,6862,3883,24411,18301,19078,44835,44674,17756,45180,44687,44739,44764,17755,44851,44836,44865,45229,17703,18719,18185,17848,13988,44768,17092,17657,17278,30135,18286,31354,43800,44711,5388,44765,17601,45043,18353,28530,17114,14402,18652,44861,5410,44870,18279,44837,17335,18688,44854,18427,17839,45518,44873,45262)
Unknown column 'np.person' in 'where clause'