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 (45515,44853,43800,17351,44866,44739,18650,45517,45518,44775,18042,30135,17092,44836,45421,18430,44856,45567,44640,17657,36472,44875,45516,4686,19078,5410,44685,44848,5993,44861,18652,5259,44764,10402,17556,14622,45286,18794,44711,28313,24438,3,44870,16885,45561,44865,44869,44858,17601,44873,18688,44835,45346,14402,31354,18279,44878,17839,18894,45072,13,37267,16935,17492,17848,19057,18446,13988,18900,13922)
Unknown column 'np.person' in 'where clause'