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 (18719,17278,44845,44836,44766,44762,44868,6609,44854,45515,17556,18427,13922,28530,18185,44869,9341,44875,44865,18430,14402,24412,44878,44767,44853,36472,22509,5993,6782,6875,18353,44765,45177,43800,13,44689,4765,44851,45229,39676,18172,17848,44768,28313,5410,31354,18042,30963,44764,45516,18446,24441,44674,45262,45277,37057,44870,6862,44849,17492,44745,45072,44837,34194,17335,17601,3,17835,44856,18279)
Unknown column 'np.person' in 'where clause'