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 (17771,6875,17351,44861,44848,13922,18981,5388,45567,18794,18042,24438,18172,17657,44867,45515,44875,44868,18237,17981,44866,17278,44835,13425,24411,18353,44851,45286,18279,44845,45072,4686,30135,18719,17839,3,9341,17092,44869,5410,18427,31354,44762,18446,44894,18900,17556,17756,17492,30963,6609,44836,17237,44884,17335,17904,17835,44685,18688,34194,5259,44873,28313,45180,24441,44858,44775,44745,39676,45277)
Unknown column 'np.person' in 'where clause'