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 (18286,22509,44873,18894,6862,31354,45043,44767,17492,8753,13,17009,44884,18430,24441,18719,44856,5388,17771,17755,44689,45518,44851,44765,44687,18279,30963,17839,45229,44868,28313,10402,45421,44869,45262,44739,44674,5259,45072,3883,44768,9341,36472,37267,17092,17703,6609,13425,45051,13922,18794,44764,17556,44865,16885,18688,30986,45516,44837,44640,17835,44745,24438,17237,18042,45517,17904,6875,3,45180)
Unknown column 'np.person' in 'where clause'