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 (18185,44858,44845,44640,5410,44854,5993,17657,17237,6609,18172,17278,44853,30135,44764,17492,18353,32454,45051,17351,18894,18688,44869,4765,44848,45180,44863,44865,17556,31354,6875,13922,39676,18301,36472,3883,17114,30986,17335,44775,34194,45518,45043,24412,22509,17703,44671,13988,37267,9341,44836,18719,45516,28313,44856,44868,44873,6782,17839,18237,44835,10402,44766,17835,17771,18042,19078,44851,16935,45262)
Unknown column 'np.person' in 'where clause'