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 (17492,18427,18172,44894,17839,44867,18794,44849,44848,45177,24441,37057,10402,9341,4765,18279,17904,44878,16885,44858,18185,3883,44865,30986,44685,39676,45518,18894,18042,13,44835,18286,45286,18650,18652,44671,17771,44745,44739,45567,44687,17335,17657,31354,16935,17756,6609,44863,45346,17703,44766,6782,17009,13922,44853,18996,30963,19057,45043,44531,18301,45072,18572,18900,5259,45515,24412,30135,18430,18719)
Unknown column 'np.person' in 'where clause'