SQLSTATE[HY000]: General error: 1041 Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap spaceSELECT A.nStockNo AS nStockNo, A.nRoomTypeNo AS nRoomTypeNo, B.sRoomTypeName AS sRoomTypeName , A.nStockType AS nStockType, B.sRoomImgFile AS sRoomImgFile FROM tStock AS A, tRoom AS B WHERE A.nYadoNo = B.nYadoNo AND A.nRoomTypeNo = B.nRoomTypeNo AND A.nYadoNo = :YadoNo AND A.nStockNo IN (SELECT nStockNo FROM tPlanSale WHERE nYadoNo = :YadoNo AND nPlanNo = :PlanNo AND bPlanSleep = 0 AND nAgentNo = :AgentNo AND DATE_FORMAT(dPlanSaleSDate, '%Y/%m/%d') <= :StayDate AND DATE_FORMAT(dPlanEDate, '%Y/%m/%d') >= :StayDate) ORDER BY B.nRoomTypeSort array(4) { ["YadoNo"]=> string(3) "274" ["PlanNo"]=> string(2) "14" ["AgentNo"]=> int(5) ["StayDate"]=> string(10) "2025/12/12" }