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,45262,18286,17335,44739,44762,18301,44835,17009,45561,44878,39676,5388,4765,45072,18894,44766,44765,5259,45517,4686,44836,37267,36472,19057,18981,44711,16885,24411,17114,28530,6875,44858,18237,18279,24438,44851,44845,44775,32454,17092,18446,18652,5410,18572,13425,17351,17601,18996,17981,18042,44875,45567,3883,17848,44873,18172,17657,45177,45516,17839,18427,44671,24441,17835,44856,45518,44863,5993,17527)
Unknown column 'np.person' in 'where clause'