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 (31354,17657,18185,24411,44836,45515,37267,18648,44671,17981,18794,17839,32454,19057,44669,44685,18981,44873,45518,44894,44869,45567,8753,44851,24441,44865,39676,18650,44745,17703,17904,5388,18172,18353,44687,18279,30986,18894,28313,44858,44762,44863,9341,45042,44845,18572,18688,44531,18286,34194,14622,37057,44689,17848,45421,5993,44855,18996,17092,17335,44766,18446,45051,17492,44775,17009,44835,17237,44767,6862)
Unknown column 'np.person' in 'where clause'