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 (44878,44854,45043,43800,39676,45421,17771,45180,10402,18794,6782,18900,17351,44775,18353,17556,45515,18427,45286,44711,18301,44764,18688,44848,17981,13988,24441,6862,17009,18042,45567,44853,6609,5993,45517,45346,44745,44687,4765,45051,18652,44765,18185,44835,16935,44640,13,44865,16885,44685,44836,9341,24412,44739,45518,44894,5259,28530,17114,17601,44856,18446,13425,17848,3883,44875,45262,18572,30986,45516)
Unknown column 'np.person' in 'where clause'