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 (28313,13,44894,44856,9341,10402,24411,44689,44878,3,17009,18279,6862,44837,45277,18719,19078,45180,44685,17492,44766,45515,18894,45042,44739,44531,18430,45518,34194,44745,30963,17755,44764,5993,45567,17601,30135,16935,18648,17556,36472,45561,44861,44669,18301,44868,13988,18794,45043,44765,44640,18996,44674,6875,17657,17835,17839,45346,18688,30986,4765,45177,18172,6782,18353,24441,45286,44884,18572,44845)
Unknown column 'np.person' in 'where clause'