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 (44865,6875,18900,44854,44875,18652,44765,44837,13922,44868,18286,28313,44835,18353,3,18185,18237,5410,17703,17351,34194,3883,44878,45516,13,44873,18279,10402,45421,44669,13988,37267,17771,17009,44689,44671,44894,44674,44767,24438,45042,18688,36472,44849,17981,45043,32454,17848,44870,30986,24412,17527,24441,44851,17839,6862,45072,17492,19057,44863,17601,44531,44768,45518,44685,18572,17904,4686,13425,45567)
Unknown column 'np.person' in 'where clause'