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 (19078,17601,44689,45518,44856,6875,16885,44848,17657,18894,45567,44884,44745,45042,44865,18185,30986,17278,17335,44873,18981,18353,44764,13,44531,31354,44870,17703,44674,6609,14402,44669,45286,44836,5993,24411,17092,30135,44640,18650,4686,13922,45043,44711,24441,18446,44858,45561,28313,44767,34194,44866,45072,39676,17492,44851,45515,44853,44867,10402,44687,17771,18794,16935,45180,18427,44768,45346,44869,5259)
Unknown column 'np.person' in 'where clause'