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 (18894,24441,17237,6862,30135,45042,43800,6875,44848,44767,44869,18353,5259,44875,17755,44745,6782,45072,44640,18794,18172,44775,45177,3883,18981,44689,34194,44687,17771,17981,17835,37057,44856,45567,45516,44873,36472,18688,13922,44531,18652,18427,17839,17904,44836,44851,13,14402,44764,28530,44674,6609,22509,44855,10402,45517,18719,5388,4686,37267,44849,17009,17703,18446,45346,18996,30986,44861,44837,44863)
Unknown column 'np.person' in 'where clause'