Too many connections

La query disassemblata:

SELE : 

ECTid_ordineFROMordini => 

WHERE data_ordine < DATE_SUB(NOW(), INTERVAL 12 HOUR) AND status = 0

--------------------------------
La query originale:

SELECT id_ordine FROM ordini WHERE data_ordine < DATE_SUB(NOW(), INTERVAL 12 HOUR) AND status = 0