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 (18279,6782,44745,17839,44845,16885,44837,24412,18353,18042,3,24441,10402,18900,17904,13922,44865,31354,17278,44853,44854,30135,13988,18430,44858,32454,17771,28530,45567,17981,45277,28313,6862,44768,45421,45561,44848,18652,44870,44687,17835,17703,5259,44855,18301,45177,18981,44856,44835,17492,4686,45229,44849,6609,44866,45346,17237,24411,17601,45515,44868,9341,44689,37267,44739,44762,45262,19057,44836,30963)
Unknown column 'np.person' in 'where clause'