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 (30135,44765,5259,28313,44854,45180,24441,13,18688,44762,45051,44858,17756,44848,45515,39676,44671,45346,44866,30963,17981,9341,45286,17771,10402,17278,45516,44870,6862,18430,34194,45229,45277,17237,30986,17703,17601,14622,44837,17009,45567,44855,17904,6782,32454,24411,18996,45561,16935,24412,44836,17492,44835,45517,4765,17839,18286,44764,17092,13922,19078,18427,16885,45262,44775,13988,36472,44767,18648,44865)
Unknown column 'np.person' in 'where clause'