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 (44866,18996,4765,44687,45072,17771,17527,5993,18572,17092,18794,44894,44674,44766,44765,18427,17601,17492,45277,17755,14622,45180,18894,44685,44849,18446,18900,44711,17237,30963,28313,45051,44848,28530,18430,18652,44671,44867,16935,13425,44768,18719,18172,45043,9341,6862,13,17657,45177,14402,17278,44869,18353,18648,44884,44856,5410,24411,6875,16885,44865,18650,44775,18279,17756,44853,30135,19057,34194,8753)
Unknown column 'np.person' in 'where clause'