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 (44835,18172,17835,18648,44765,44849,44687,44640,17703,17839,45515,18900,44870,45277,18996,44856,44669,44768,44767,4686,13,30135,45072,45517,17351,44674,45286,17527,6782,44865,16885,45229,17771,44775,24412,17601,43800,44762,18185,44685,17237,44869,17756,17009,18286,8753,14402,44766,44854,18353,18650,17556,6609,17755,17278,18237,13988,18042,18688,18894,18652,45051,44855,37057,18446,44894,44739,19078,44531,32454)
Unknown column 'np.person' in 'where clause'