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 (17756,22509,45421,6609,45277,44868,45518,18900,44851,45517,44775,36472,18172,18688,3,45072,44863,19078,17839,45561,44869,17657,44640,19057,44685,24441,45043,34194,44865,45051,44848,44671,44866,17092,18286,4686,44739,44836,17527,44894,45262,13922,17835,44837,44768,31354,13988,44853,5259,45177,44854,17351,18430,44867,37057,44764,14622,45567,44674,44745,18719,13,44875,45516,5388,8753,16885,44687,45286,13425)
Unknown column 'np.person' in 'where clause'