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 (45072,17009,44835,17351,45561,6862,18427,18650,44762,45515,44671,18353,19057,18286,45262,45346,45286,45516,28530,45051,44865,45518,17114,45277,44767,44766,9341,45180,17278,17601,17527,13425,17771,17556,44845,44640,44855,17756,45421,3,18572,31354,18894,18648,17839,44854,44764,32454,3883,18794,44856,45177,44745,44851,44849,44711,39676,43800,4765,45517,5259,24438,18042,44687,44531,6609,44868,8753,44853,18301)
Unknown column 'np.person' in 'where clause'