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 (45286,44851,28530,9341,5410,5259,45277,44764,45177,44875,19078,18427,44855,37267,17835,44836,44687,6609,32454,16935,6875,44854,17237,44845,31354,44878,28313,18719,18279,17335,45262,18900,44858,13922,18652,45517,17981,18894,44894,17092,19057,45561,43800,44765,17904,44866,44685,10402,17601,13988,18794,17009,18650,45180,24438,18981,18237,17556,44711,44766,18688,44768,45518,3,17848,45042,44739,45346,30963,14402)
Unknown column 'np.person' in 'where clause'