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 (36472,30135,18279,18286,18301,9341,6782,44863,18353,18185,44745,16935,44689,17904,44869,18688,44766,45277,45180,32454,17351,44845,45516,17237,13,19078,13922,45042,44868,5993,17092,44687,44640,14622,37267,17839,8753,18648,17278,45286,44848,45567,17835,5259,17556,44853,19057,4686,44865,44836,44873,45517,18900,44878,18794,18996,44856,17601,18427,44835,3883,31354,17703,24438,44531,44884,10402,28530,6875,17527)
Unknown column 'np.person' in 'where clause'