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 (17351,44689,17556,43800,17009,44711,17492,45051,30135,18572,18301,18719,44745,3883,18353,24441,44762,44873,45072,4765,44835,44764,18185,44856,5410,17237,44739,18286,44870,45346,6862,45421,44669,18688,30963,17835,44775,44687,17114,44865,18237,44863,18648,17092,44868,28530,45561,45277,18172,44894,18042,5259,44849,45043,17755,44766,44765,45177,45229,44848,18981,17278,45180,24411,13988,44853,44767,17527,18650,44866)
Unknown column 'np.person' in 'where clause'