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 (18894,5993,17335,18652,44878,18650,45346,10402,44865,5259,31354,24441,44894,45518,5388,6875,17092,17278,44685,19078,34194,18301,44669,45262,9341,6782,17237,8753,44858,13425,16885,44869,44867,3883,45517,44640,17771,44851,44854,45561,24411,18996,32454,44762,18981,3,17981,45042,18794,44745,37057,18572,17703,44764,44861,17492,45286,44835,45567,44671,30135,44863,16935,17835,14402,30986,18900,39676,45516,18185)
Unknown column 'np.person' in 'where clause'