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 (36472,45516,31354,44858,17556,19057,44867,44851,14622,16885,13,17114,30963,44894,17848,44873,37057,17527,5993,44869,18719,44856,17657,14402,10402,45229,44849,18900,45042,18172,17492,24412,16935,3883,13922,17335,45072,45518,13988,44762,18237,28313,18652,18648,19078,18446,17771,44669,17009,9341,5259,39676,44865,37267,18794,17756,18650,34194,44689,17092,45561,44836,17703,45567,6609,18894,44854,30986,6875,6862)
Unknown column 'np.person' in 'where clause'