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 (44848,18446,44766,17278,44851,31354,30963,44856,43800,24411,44853,24438,44745,17904,18688,18650,37057,13425,17703,44894,45346,17755,18981,45072,16885,13,17835,44671,44884,18719,30986,18427,17351,22509,44869,44669,17839,17657,5259,44854,44870,18794,44689,45042,6609,17335,14402,18648,45262,17527,44685,6875,32454,5388,13922,17492,19078,24441,44845,44640,44687,18430,30135,17114,6782,17009,45277,17237,44836,18996)
Unknown column 'np.person' in 'where clause'