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 (44861,6609,44836,32454,45421,44775,45346,44866,17556,18185,45518,19078,44851,17771,5410,44767,18894,45229,17848,44854,9341,45042,30986,39676,44835,44894,45277,30135,6862,44764,44845,44671,24438,45043,45262,8753,45180,17756,44711,44865,18719,14402,24441,34194,44687,44745,24411,18996,44766,44765,44848,18172,18446,17601,17492,44837,45517,44674,5259,18650,18042,5388,44849,10402,18286,44878,44762,22509,44875,44768)
Unknown column 'np.person' in 'where clause'