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 (17771,45229,45518,6609,44875,18430,6875,44894,44768,10402,32454,4686,44848,17981,45515,44766,44835,17848,44856,5259,30135,44866,13922,45286,18648,17237,45277,44745,44739,45561,44775,8753,19057,45567,16885,18894,17556,18652,28530,18172,45042,43800,24441,44687,18301,44671,18572,45421,44865,17839,17278,18279,44845,17092,30963,44855,24438,44765,44869,34194,17904,45516,28313,44531,18650,45072,44858,4765,36472,44873)
Unknown column 'np.person' in 'where clause'