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 (14622,17278,17335,18572,18430,45072,30986,18900,45516,9341,44855,44671,17657,44858,44854,44775,44884,6609,45567,19078,18286,17839,6875,44853,34194,45043,44764,22509,10402,44689,24411,8753,4765,45229,45517,45515,44868,24441,3,44837,45277,45518,19057,44640,44687,28313,17981,17835,18996,45561,18427,5259,44863,18794,36472,44849,45286,39676,44875,44685,17703,17556,18301,18042,32454,44674,44873,17756,17351,44766)
Unknown column 'np.person' in 'where clause'