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 (44865,44868,17756,17278,17556,18794,3883,24411,45277,44835,28530,45516,17981,22509,30963,17835,18688,45262,4765,16885,18572,44775,44687,17904,18900,17335,13922,18981,45177,18042,44856,18172,44764,43800,45517,44884,44851,44739,44894,6862,44531,37057,17351,6782,44640,44855,18719,45180,16935,44848,17703,45421,30135,36472,32454,45286,5259,45518,44866,17601,24412,37267,18894,44849,45561,5388,44765,44867,34194,3)
Unknown column 'np.person' in 'where clause'