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 (44768,45177,37057,18719,16885,18279,13425,18286,5410,17527,37267,45286,6862,18996,17335,9341,28530,5388,24411,44775,44856,22509,5993,18688,18353,44674,17492,17839,18648,44689,6875,18237,45518,44849,8753,44745,18894,14622,5259,18427,10402,17009,13,3,4765,17835,44854,17657,19078,17771,36472,18794,44640,44865,45180,17114,44873,17278,17092,45072,44531,17755,44855,45346,44870,44868,44766,45051,17904,44851)
Unknown column 'np.person' in 'where clause'