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 (45277,44671,44858,45042,28530,24411,17237,18427,13922,18981,18648,18996,5388,44766,44685,14622,45262,45517,18572,45516,44865,17335,43800,19078,37057,45072,28313,44775,44848,44739,44745,44855,18042,6609,18430,44689,45567,19057,44853,17657,17492,34194,18279,17771,44768,45346,18301,3883,45561,5993,10402,44873,44836,44875,18688,18353,44849,44762,30963,24441,17527,18172,17703,18650,30986,18894,44531,44868,24438,44851)
Unknown column 'np.person' in 'where clause'