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 (18650,36472,3883,8753,17904,44868,45518,44687,34194,18688,44711,19057,17755,17335,24411,9341,45286,44878,17835,30135,44767,44849,32454,44835,17839,45051,28530,44762,18286,44669,45515,30986,17601,44884,44873,18652,18301,18794,5410,24412,17703,44875,44768,45277,6875,18719,44894,17278,18172,18042,18981,24441,44863,22509,28313,3,44845,13425,44766,45567,17351,39676,18185,44745,44764,6782,44689,17237,17848,5259)
Unknown column 'np.person' in 'where clause'