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 (44835,45567,17839,17848,44848,17527,17981,44853,44687,18430,37057,44669,45346,17601,43800,5993,6875,9341,13922,19057,17351,44851,34194,3,30986,44762,45042,45277,18279,6609,24411,45516,17756,44861,24441,32454,44689,44674,45517,17556,18900,24438,44863,45421,18185,17492,18427,3883,37267,18648,18894,18688,18572,44858,44640,45515,44868,13,44855,18794,45072,4686,24412,39676,6862,18286,30135,17092,44765,45051)
Unknown column 'np.person' in 'where clause'