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 (16885,14622,17904,37057,39676,44878,24411,44711,18353,34194,44853,43800,17771,17839,17703,44848,17335,4686,45043,44866,18794,30963,44884,44685,44671,6862,18650,44745,13425,5259,30986,44764,44762,24441,44856,17527,18301,44836,6782,44858,28530,5410,3883,17601,6609,18894,45072,17755,18688,45042,44669,6875,45561,45286,44894,28313,17278,17848,18719,17556,44765,18996,10402,3,18981,44766,44855,13922,31354,18286)
Unknown column 'np.person' in 'where clause'