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 (44873,44669,17527,17601,13922,17492,10402,17092,18996,45561,24411,44640,18794,18185,44867,44836,17114,34194,44849,44863,44531,17904,17351,17839,22509,44671,45180,45518,17835,14622,18237,44878,24441,39676,18572,17335,45346,45177,44711,28530,44674,13988,4765,30963,44767,19078,5410,18172,44848,30135,44865,45072,19057,16885,17755,18894,28313,44765,44764,6862,18353,45517,36472,31354,45051,44687,5993,18286,44854,6609)
Unknown column 'np.person' in 'where clause'