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 (24438,13,44849,44854,37057,44669,44868,44875,6782,16885,5410,18172,18430,37267,13922,28313,18894,6609,44835,45518,45517,30963,44865,18648,18286,8753,44848,44851,45515,45180,30986,45421,44837,43800,45277,17601,44745,17009,28530,4765,45286,17771,44878,45516,19078,44674,44685,44767,17114,16935,18996,34194,44884,17904,36472,24441,44687,45042,45051,31354,44768,44869,5259,17703,17839,45567,17492,17556,18900,18427)
Unknown column 'np.person' in 'where clause'