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 (18894,24412,44875,44856,17278,18648,44767,44835,37057,45177,45277,44689,16885,45286,28530,44766,17835,17703,32454,18430,44674,44854,45072,17009,28313,30986,45229,17839,44869,44745,45262,44711,43800,18900,6782,17601,5259,6609,44671,10402,3883,34194,44853,18446,19057,45051,6862,13,13988,17092,17771,30963,5993,44851,18794,5410,44849,18719,44866,45518,18279,45517,18353,18688,44858,44836,45567,18172,14402,9341)
Unknown column 'np.person' in 'where clause'