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 (18353,45561,18794,5259,31354,18981,44739,44853,44775,5388,45346,14402,13,17556,24441,6875,19057,24411,4765,44835,45567,17839,18648,5993,30986,18894,44869,30135,13425,18185,44854,44875,18996,44845,44866,44849,44878,17092,44768,44674,37267,32454,44671,39676,44894,18900,34194,18301,44851,28530,17009,14622,45043,18042,17848,45042,18286,44837,44873,18719,44762,17335,44861,18572,6862,43800,17114,44836,17904,45180)
Unknown column 'np.person' in 'where clause'