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 (37057,18794,4686,6862,30963,18894,17703,5410,44711,45072,18279,17839,44863,44775,17092,17601,45229,44739,17009,45518,44855,45177,6875,44835,44669,16935,36472,44878,44868,44858,22509,5388,24412,45277,18301,44851,18996,17492,14622,44745,8753,45286,45421,44766,18042,44640,45043,17981,13922,24438,18185,32454,44687,6782,44894,18446,44861,44870,10402,44865,45516,44762,44768,3,18688,44875,30135,30986,17351,18981)
Unknown column 'np.person' in 'where clause'