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 (28530,44775,13988,44849,6609,39676,18237,14402,44867,44869,45180,17351,17114,44689,45515,18353,44865,24438,44854,18301,28313,3883,44768,6862,45516,18286,17278,17601,17703,17981,13922,22509,18652,44875,44868,30986,6875,18996,45043,44640,18894,44745,16885,45277,8753,43800,44863,5410,18794,45561,44866,9341,18719,19078,18185,44858,30135,17556,18650,4765,13425,44671,10402,36472,45177,18688,18446,18572,3,17492)
Unknown column 'np.person' in 'where clause'