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 (17009,44762,44866,18237,44869,18446,17092,13425,44868,17556,44689,44768,17237,44775,18650,45177,43800,44764,14622,44837,4686,17771,18286,6875,45180,44845,44884,18719,44858,44711,14402,18353,6782,45567,44674,45051,22509,24438,18688,18996,17904,3,17835,44767,44640,18185,6609,31354,18430,28530,44851,44739,17351,5259,17755,5410,5993,44745,44867,17848,18794,44835,10402,44766,37267,32454,17492,44865,44531,44863)
Unknown column 'np.person' in 'where clause'