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 (17848,45043,17009,17351,6609,44858,3883,34194,44851,18286,6862,4686,44836,18652,17278,17237,28313,44856,5388,44711,17556,44870,5993,45042,44762,45177,18427,17839,44865,5259,17771,45072,36472,6875,44768,44640,44531,22509,44854,45517,37057,18688,30135,45180,13,44671,45561,17601,5410,44869,18042,18430,45516,31354,44687,18172,44863,13922,28530,32454,45421,18185,17335,24411,16935,45567,8753,18900,44849,45518)
Unknown column 'np.person' in 'where clause'