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 (5388,45229,13922,18981,30986,17556,18572,17756,18894,18279,44848,44849,44674,6862,44745,17237,44766,45517,44768,44689,32454,44669,30135,44851,17904,13425,18172,17981,34194,44640,17703,17114,13,8753,44884,43800,44863,44873,37057,45180,18301,19057,18430,44765,18794,44866,44836,6782,18286,45518,37267,44671,44687,17839,24412,13988,18237,5993,45051,4686,44762,24441,6609,45516,14402,44835,22509,18650,17009,39676)
Unknown column 'np.person' in 'where clause'