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 (44878,44685,18427,44765,5993,44837,44855,44884,45421,18900,18279,44739,18172,44865,45561,45051,14402,13922,45229,17771,18996,17335,45518,19057,44764,45177,18650,5410,17601,36472,44867,45072,17278,44858,13,45567,17835,24412,3,17556,18794,18353,34194,4686,44873,44853,17092,44845,17848,18042,17839,44640,44835,13988,10402,45262,44861,17904,44856,44531,37057,44863,31354,17703,44767,28530,6862,44745,32454,16935)
Unknown column 'np.person' in 'where clause'