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 (45042,44640,18652,45043,44711,30963,6609,17904,45072,17771,24438,19078,13425,17556,44884,5993,17601,17839,18430,16935,13,44762,44835,44854,45051,17092,18286,45346,17114,18353,14622,18185,44865,45567,44875,45517,39676,17351,44768,44765,5388,28313,18894,44849,18996,17835,34194,44873,44855,44837,45518,44745,18279,44685,44767,44861,13988,43800,17755,44531,24411,44848,4686,18688,17756,44851,18042,44866,45177,45180)
Unknown column 'np.person' in 'where clause'