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 (3883,44674,44766,17839,31354,44685,16935,44745,44687,34194,18353,18719,17351,18652,45286,5410,18427,44865,44853,44870,18981,17335,17114,9341,18688,18042,18286,17835,28530,19057,44669,18185,44878,24412,18279,4686,45561,13,17848,45042,45567,32454,44867,44765,45051,14622,44689,37057,8753,17703,45277,10402,16885,18301,6875,44848,36472,44894,17756,6609,17278,44849,17771,24441,18650,44863,30963,17601,44762,44835)
Unknown column 'np.person' in 'where clause'