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 (45177,18279,45286,37267,18446,36472,18301,44853,18042,45043,44764,24411,18286,5993,44640,44858,17009,18427,17278,44836,17657,3883,45421,44884,18688,17981,44854,4686,44685,13988,44689,17848,14402,19078,32454,5388,44870,44687,45072,45277,6875,18353,39676,17601,13922,17335,44848,44866,16885,44671,18981,17904,18172,43800,28313,17771,44863,45051,6609,45518,16935,44894,44849,44861,18794,18996,44873,18900,13,18894)
Unknown column 'np.person' in 'where clause'