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 (45042,18688,45567,45517,18286,45421,28313,45072,37267,17492,44875,44836,44865,44768,9341,18894,44868,8753,44878,18237,17009,18042,44674,17351,44762,44861,18650,31354,22509,6609,44856,19057,44767,24441,5410,5388,16935,17556,44867,18648,36472,18572,3,32454,45180,28530,45561,18353,10402,37057,45177,44854,17703,44894,44775,45286,5993,39676,13988,30963,18185,18996,44711,24412,44531,17981,6875,14402,45518,34194)
Unknown column 'np.person' in 'where clause'