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 (44868,6862,24438,44867,6782,9341,28530,44866,13425,44875,17835,17351,6875,18650,4686,44775,3883,45277,17092,13988,45567,3,13,18286,37057,44687,31354,45229,44762,17601,44671,44845,17839,45517,44865,24441,44856,18719,28313,18894,45180,44849,45515,45177,45561,45262,32454,18688,8753,44764,17114,17556,44674,18353,43800,44861,44768,44851,5993,6609,18648,19078,17771,18172,30986,45421,17756,44669,44767,44878)
Unknown column 'np.person' in 'where clause'