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 (43800,37057,45043,19078,18042,17756,4686,13425,18427,30135,44689,30986,44685,18353,32454,18237,45229,5993,44866,5259,6875,16935,45262,44858,28530,44762,36472,17527,44853,3883,44854,24412,17755,18572,6609,18996,16885,17335,18650,44766,44869,5410,18894,17556,17492,45346,44863,17092,30963,17839,17904,17601,44711,13922,45516,44855,44640,24438,45051,6782,44848,44835,22509,18900,44767,18286,28313,44765,18981,44775)
Unknown column 'np.person' in 'where clause'