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 (18719,44671,18185,44836,17009,16935,17755,31354,18042,17601,44884,4686,44845,45180,39676,45229,45346,44687,44768,24441,44765,18353,17756,13,17556,45421,3883,18996,44875,45517,18172,44849,17657,8753,17839,18652,45286,18430,44762,30135,18981,17904,44856,45515,18427,44767,32454,6609,44739,44858,18237,34194,24438,44851,16885,24411,9341,44531,18648,17771,17114,28530,44745,5388,44848,44868,45516,44873,14402,37267)
Unknown column 'np.person' in 'where clause'