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 (45515,22509,44745,45561,17527,24441,44687,44711,18172,45516,17657,18430,44865,18286,44640,44669,44739,17839,24411,17351,19057,44766,13988,3,45042,18042,17601,17835,44775,44894,44689,44762,30135,8753,44854,44858,44870,34194,44863,45262,44767,45277,45043,45518,17703,18652,44856,39676,18185,18688,44674,24438,6875,44845,17981,14622,45177,44869,5410,14402,44764,45072,45229,13922,18279,18648,44836,44765,18719,30963)
Unknown column 'np.person' in 'where clause'