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 (44856,17492,17009,44762,18900,44640,14622,30135,28313,30963,8753,18279,18430,45516,18794,17114,44767,44851,37057,44689,44875,44868,18981,44835,44766,17981,44531,18650,45346,6782,39676,44884,44873,45051,18286,34194,44669,18237,44849,44861,4686,44745,5259,44848,44854,18719,44845,45072,17351,13425,45518,17839,3,44865,44674,45229,19078,16935,44863,18427,18172,13922,44866,30986,43800,22509,44671,17657,17848,45515)
Unknown column 'np.person' in 'where clause'