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,17351,44855,16935,45043,34194,44762,5993,44766,45567,45421,44853,18172,18430,45072,6609,18688,17492,5259,5410,28313,45515,44878,36472,17848,44851,4765,44767,18279,45229,44531,44711,44685,18446,13425,45517,45286,24411,45042,17601,44669,17009,18237,44835,44894,17556,45346,44739,18427,44845,19078,44858,17657,37057,17092,45518,6782,31354,13922,44671,44873,30135,22509,10402,32454,18301,44869,44861,18185,17981)
Unknown column 'np.person' in 'where clause'