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,44762,5388,45518,18353,44836,44849,18279,44640,44854,17839,44835,44848,44685,44768,18427,28313,39676,19078,18688,44671,13922,17755,32454,45043,18900,45517,44837,45567,44873,45051,18981,30135,13988,45262,45277,17904,14622,44863,18286,44858,19057,44745,18572,22509,44884,37267,17981,45346,6782,6862,17703,17601,18301,14402,45515,6609,17771,5410,17848,44687,44766,18185,17092,17009,34194,17556,44869,18719,17278)
Unknown column 'np.person' in 'where clause'