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 (6782,45561,17492,45051,44711,44869,45277,44894,44863,45421,44775,4765,24412,18900,17904,5388,44845,8753,45567,44836,17351,17848,18794,44531,18648,44835,45518,18279,5259,19078,44856,18185,18430,13922,13,45042,16885,39676,44851,18572,3883,45072,13988,18172,44870,18981,18353,30986,34194,44865,44848,17657,44868,44685,6609,17839,44689,37057,17009,5993,22509,28313,44837,17755,17703,17556,37267,45229,28530,44640)
Unknown column 'np.person' in 'where clause'