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 (44689,45180,44762,24412,44640,18652,44674,17848,18279,18794,31354,45277,44739,44836,45043,17492,10402,9341,44878,44866,17839,3883,44869,13988,45262,6782,45515,44687,16935,18894,6609,28313,37057,8753,18286,19057,44849,44764,44875,44711,44863,30135,18719,13922,18981,44856,6862,43800,30986,45042,44837,44768,18301,37267,4686,24411,17527,17904,5259,44858,44853,44845,44851,5388,16885,45518,18572,44775,44765,45346)
Unknown column 'np.person' in 'where clause'